.class public Les/r30;
.super Ljava/lang/Object;
.source "GdriveFileSystem.java"

# interfaces
.implements Lcom/estrongs/android/pop/netfs/INetFileSystem;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/r30$c;
    }
.end annotation


# instance fields
.field private final a:Ljava/lang/String;

.field private final b:Ljava/lang/String;

.field private c:Les/t30;

.field private d:Z

.field e:Ljava/text/SimpleDateFormat;

.field private f:Ljava/lang/String;


# direct methods
.method private constructor <init>(Z)V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string v0, "1033052592302-dh9bgum85ac61bd4keltlbpk0vqh5hdn.apps.googleusercontent.com"

    .line 2
    iput-object v0, p0, Les/r30;->a:Ljava/lang/String;

    const-string v0, "PA31HP-HTZyOVgAvp_HusYp_"

    .line 3
    iput-object v0, p0, Les/r30;->b:Ljava/lang/String;

    .line 4
    new-instance v0, Les/t30;

    invoke-direct {v0}, Les/t30;-><init>()V

    iput-object v0, p0, Les/r30;->c:Les/t30;

    .line 5
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v1, "yyyy-MM-dd\'T\'HH:mm:ss"

    invoke-direct {v0, v1}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Les/r30;->e:Ljava/text/SimpleDateFormat;

    const/4 v0, 0x0

    .line 6
    iput-object v0, p0, Les/r30;->f:Ljava/lang/String;

    .line 7
    iput-boolean p1, p0, Les/r30;->d:Z

    return-void
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;JIJ[B)I
    .locals 6

    const/4 v0, 0x3

    .line 241
    :try_start_0
    new-instance v1, Lorg/apache/http/client/methods/HttpPut;

    invoke-direct {v1, p1}, Lorg/apache/http/client/methods/HttpPut;-><init>(Ljava/lang/String;)V

    const-string p1, "Authorization"

    .line 242
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Bearer "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v1, p1, p2}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string p1, "Content-Range"

    .line 243
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "bytes "

    invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2, p3, p4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, "-"

    invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    int-to-long v2, p5

    add-long/2addr p3, v2

    const-wide/16 v4, 0x1

    sub-long/2addr p3, v4

    invoke-virtual {p2, p3, p4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string p3, "/"

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2, p6, p7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v1, p1, p2}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 244
    new-instance p1, Ljava/io/ByteArrayInputStream;

    const/4 p2, 0x0

    invoke-direct {p1, p8, p2, p5}, Ljava/io/ByteArrayInputStream;-><init>([BII)V

    .line 245
    new-instance p3, Lcom/estrongs/android/pop/netfs/utils/LargeInputStreamEntity;

    invoke-direct {p3, p1, v2, v3}, Lcom/estrongs/android/pop/netfs/utils/LargeInputStreamEntity;-><init>(Ljava/io/InputStream;J)V

    .line 246
    invoke-virtual {v1, p3}, Lorg/apache/http/client/methods/HttpPut;->setEntity(Lorg/apache/http/HttpEntity;)V

    const p1, 0xc350

    .line 247
    invoke-virtual {p0, p1}, Les/r30;->a(I)Lorg/apache/http/client/HttpClient;

    move-result-object p1

    .line 248
    invoke-interface {p1, v1}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p1

    .line 249
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p1

    invoke-interface {p1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/16 p3, 0xc8

    if-eq p1, p3, :cond_3

    const/16 p3, 0xc9

    if-ne p1, p3, :cond_0

    goto :goto_0

    :cond_0
    const/16 p2, 0x134

    if-ne p1, p2, :cond_1

    const/4 p1, 0x1

    return p1

    :cond_1
    const/16 p2, 0x1f4

    if-ge p1, p2, :cond_2

    const/4 p1, 0x2

    return p1

    :cond_2
    return v0

    :cond_3
    :goto_0
    return p2

    :catch_0
    return v0
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;J)J
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 220
    new-instance v0, Lorg/apache/http/client/methods/HttpPut;

    invoke-direct {v0, p1}, Lorg/apache/http/client/methods/HttpPut;-><init>(Ljava/lang/String;)V

    .line 221
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Bearer "

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string p2, "Authorization"

    invoke-virtual {v0, p2, p1}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 222
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string p2, "bytes */"

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-wide/16 v1, -0x1

    cmp-long p2, p3, v1

    if-nez p2, :cond_0

    const-string p2, "*"

    goto :goto_0

    :cond_0
    invoke-static {p3, p4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p2

    :goto_0
    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string p2, "Content-Range"

    invoke-virtual {v0, p2, p1}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 223
    new-instance p1, Lorg/apache/http/entity/StringEntity;

    const-string p2, ""

    const-string v3, "UTF-8"

    invoke-direct {p1, p2, v3}, Lorg/apache/http/entity/StringEntity;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Lorg/apache/http/client/methods/HttpPut;->setEntity(Lorg/apache/http/HttpEntity;)V

    .line 224
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p1

    .line 225
    invoke-interface {p1, v0}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p1

    .line 226
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2

    const/16 v0, 0xc8

    if-eq p2, v0, :cond_6

    const/16 v0, 0xc9

    if-ne p2, v0, :cond_1

    goto :goto_2

    :cond_1
    const/16 p3, 0x134

    if-ne p2, p3, :cond_3

    const-string p2, "Range"

    .line 227
    invoke-interface {p1, p2}, Lorg/apache/http/HttpResponse;->getHeaders(Ljava/lang/String;)[Lorg/apache/http/Header;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 228
    array-length p2, p1

    if-nez p2, :cond_2

    goto :goto_1

    :cond_2
    const/4 p2, 0x0

    .line 229
    aget-object p1, p1, p2

    invoke-interface {p1}, Lorg/apache/http/Header;->getValue()Ljava/lang/String;

    move-result-object p1

    const/16 p2, 0x2d

    .line 230
    invoke-virtual {p1, p2}, Ljava/lang/String;->indexOf(I)I

    move-result p2

    add-int/lit8 p2, p2, 0x1

    .line 231
    invoke-virtual {p1, p2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide p1

    const-wide/16 p3, 0x1

    add-long v1, p1, p3

    goto :goto_1

    :cond_3
    const/16 p1, 0x194

    if-ne p2, p1, :cond_4

    const-wide/16 p1, -0x2

    return-wide p1

    :cond_4
    const-wide/16 v1, 0x0

    :cond_5
    :goto_1
    return-wide v1

    :cond_6
    :goto_2
    return-wide p3
.end method

.method private a(Lorg/json/simple/JSONObject;Ljava/lang/String;)Les/s30$a;
    .locals 18

    move-object/from16 v1, p1

    move-object/from16 v0, p2

    const-string v2, "application/pdf"

    const-string v3, "text/html"

    const-string v4, "exportLinks"

    const-string v5, "parents"

    const-string v6, "thumbnailLink"

    const-string v7, "webContentLink"

    const-string v8, "etag"

    const-string v9, "webViewLink"

    .line 148
    :try_start_0
    new-instance v10, Les/s30$a;

    invoke-direct {v10}, Les/s30$a;-><init>()V

    const-string v11, "id"

    .line 149
    invoke-virtual {v1, v11}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/lang/String;

    iput-object v11, v10, Les/s30$a;->r:Ljava/lang/String;

    const-string v11, "shared"

    .line 150
    invoke-virtual {v1, v11}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/lang/Boolean;

    invoke-virtual {v11}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v11

    iput-boolean v11, v10, Les/s30$a;->w:Z

    const-string v11, "sharedWithMeDate"

    .line 151
    invoke-virtual {v1, v11}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v11

    const/4 v12, 0x1

    if-eqz v11, :cond_0

    .line 152
    iput-boolean v12, v10, Les/s30$a;->v:Z

    :cond_0
    const-string v11, "mimeType"

    .line 153
    invoke-virtual {v1, v11}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/lang/String;

    const/4 v13, 0x0

    if-eqz v11, :cond_1

    const-string v14, "application/vnd.google-apps.folder"

    .line 154
    invoke-virtual {v11, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v14

    if-eqz v14, :cond_1

    .line 155
    iput v12, v10, Les/s30$a;->e:I

    const-wide/16 v14, 0x0

    .line 156
    iput-wide v14, v10, Les/s30$a;->h:J

    goto :goto_0

    .line 157
    :cond_1
    iput v13, v10, Les/s30$a;->e:I

    .line 158
    :goto_0
    iget-object v14, v10, Les/s30$a;->r:Ljava/lang/String;

    iput-object v14, v10, Les/s30$a;->m:Ljava/lang/String;

    .line 159
    iget v14, v10, Les/s30$a;->e:I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_5

    if-nez v14, :cond_2

    :try_start_1
    const-string v14, "fileSize"

    .line 160
    invoke-virtual {v1, v14}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Ljava/lang/String;

    .line 161
    invoke-static {v14}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v14

    iput-wide v14, v10, Les/s30$a;->h:J
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    :cond_2
    :try_start_2
    const-string v14, "title"

    .line 162
    invoke-virtual {v1, v14}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Ljava/lang/String;

    .line 163
    iget v15, v10, Les/s30$a;->e:I
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_5

    const-string v13, "/"

    if-nez v15, :cond_4

    :try_start_3
    const-string v15, "application/vnd.google-apps"

    invoke-virtual {v11, v15}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_4

    .line 164
    invoke-virtual {v0, v13}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_3

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v11, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :goto_1
    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_2

    :cond_3
    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v11, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_1

    :goto_2
    iput-object v0, v10, Les/s30$a;->d:Ljava/lang/String;

    const/16 v0, 0x110

    .line 165
    iput v0, v10, Les/s30$a;->l:I

    const/4 v13, 0x1

    goto :goto_5

    .line 166
    :cond_4
    invoke-virtual {v0, v13}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_5

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v11, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :goto_3
    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_4

    :cond_5
    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v11, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_3

    :goto_4
    iput-object v0, v10, Les/s30$a;->d:Ljava/lang/String;

    const/4 v13, 0x0

    .line 167
    :goto_5
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "https://www.googleapis.com/drive/v2/files/"

    invoke-virtual {v0, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v11, v10, Les/s30$a;->r:Ljava/lang/String;

    invoke-static {v11}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v0, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v11, "?alt=media"

    invoke-virtual {v0, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v10, Les/s30$a;->n:Ljava/lang/String;
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_5

    :try_start_4
    const-string v0, "modifiedDate"

    .line 168
    invoke-virtual {v1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2

    move-object/from16 v11, p0

    .line 169
    :try_start_5
    iget-object v14, v11, Les/r30;->e:Ljava/text/SimpleDateFormat;

    invoke-virtual {v14, v0}, Ljava/text/SimpleDateFormat;->parse(Ljava/lang/String;)Ljava/util/Date;

    move-result-object v0

    .line 170
    invoke-virtual {v0}, Ljava/util/Date;->getTime()J

    move-result-wide v14

    const-wide/16 v16, 0x3e8

    div-long v14, v14, v16

    long-to-int v0, v14

    iput v0, v10, Les/s30$a;->g:I
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_1

    goto :goto_7

    :catch_1
    move-exception v0

    goto :goto_6

    :catch_2
    move-exception v0

    move-object/from16 v11, p0

    .line 171
    :goto_6
    :try_start_6
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_4

    .line 172
    :goto_7
    :try_start_7
    invoke-virtual {v1, v8}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 173
    invoke-virtual {v1, v8}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, v10, Les/s30$a;->o:Ljava/lang/String;

    .line 174
    :cond_6
    invoke-virtual {v1, v7}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    .line 175
    invoke-virtual {v1, v7}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, v10, Les/s30$a;->t:Ljava/lang/String;

    .line 176
    :cond_7
    invoke-virtual {v1, v6}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_8

    .line 177
    invoke-virtual {v1, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, v10, Les/s30$a;->s:Ljava/lang/String;

    .line 178
    :cond_8
    invoke-virtual {v1, v9}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 179
    invoke-virtual {v1, v9}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, v10, Les/s30$a;->p:Ljava/lang/String;

    .line 180
    :cond_9
    invoke-virtual {v1, v9}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_a

    .line 181
    invoke-virtual {v1, v9}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, v10, Les/s30$a;->q:Ljava/lang/String;

    :cond_a
    if-eqz v13, :cond_d

    .line 182
    invoke-virtual {v1, v4}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_d

    .line 183
    invoke-virtual {v1, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lorg/json/simple/JSONObject;

    .line 184
    invoke-virtual {v0, v3}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_b

    .line 185
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, v10, Les/s30$a;->d:Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ".html"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v10, Les/s30$a;->d:Ljava/lang/String;

    .line 186
    invoke-virtual {v0, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, v10, Les/s30$a;->t:Ljava/lang/String;

    goto :goto_8

    .line 187
    :cond_b
    invoke-virtual {v0, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_c

    .line 188
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, v10, Les/s30$a;->d:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, ".pdf"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v10, Les/s30$a;->d:Ljava/lang/String;

    .line 189
    invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, v10, Les/s30$a;->t:Ljava/lang/String;

    goto :goto_8

    .line 190
    :cond_c
    invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;

    move-result-object v0

    .line 191
    invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .line 192
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_d

    .line 193
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, v10, Les/s30$a;->t:Ljava/lang/String;

    const-string v2, "exportFormat="

    .line 194
    invoke-virtual {v0, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    if-lez v0, :cond_d

    .line 195
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, v10, Les/s30$a;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "."

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, v10, Les/s30$a;->t:Ljava/lang/String;

    add-int/lit8 v0, v0, 0xd

    invoke-virtual {v3, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v10, Les/s30$a;->d:Ljava/lang/String;
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_3

    goto :goto_8

    :catch_3
    move-exception v0

    .line 196
    :try_start_8
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 197
    :cond_d
    :goto_8
    iget-boolean v0, v10, Les/s30$a;->w:Z

    if-eqz v0, :cond_e

    .line 198
    iget v0, v10, Les/s30$a;->l:I

    or-int/2addr v0, v12

    iput v0, v10, Les/s30$a;->l:I

    .line 199
    :cond_e
    iget-boolean v0, v10, Les/s30$a;->v:Z

    if-eqz v0, :cond_f

    .line 200
    iget v0, v10, Les/s30$a;->l:I

    or-int/lit16 v0, v0, 0x1000

    iput v0, v10, Les/s30$a;->l:I

    .line 201
    :cond_f
    invoke-virtual {v1, v5}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_10

    .line 202
    invoke-virtual {v1, v5}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lorg/json/simple/JSONArray;

    .line 203
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    iput v0, v10, Les/s30$a;->k:I
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_4

    :cond_10
    return-object v10

    :catch_4
    move-exception v0

    goto :goto_9

    :catch_5
    move-exception v0

    move-object/from16 v11, p0

    .line 204
    :goto_9
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    const/4 v0, 0x0

    return-object v0
.end method

.method private a(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;
    .locals 0

    .line 27
    invoke-interface {p1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    return-object p1
.end method

.method static synthetic a(Les/r30;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private a(Ljava/lang/String;)Ljava/lang/String;
    .locals 3

    const-string v0, "/"

    .line 65
    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    return-object v2

    .line 66
    :cond_0
    invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    .line 67
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    invoke-virtual {p1, v1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    :cond_1
    const/16 v0, 0x2f

    .line 68
    invoke-virtual {p1, v0}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v0

    if-ltz v0, :cond_2

    add-int/lit8 v0, v0, 0x1

    .line 69
    invoke-virtual {p1, v1, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    return-object p1

    :cond_2
    return-object v2
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
    .locals 5

    const-string p2, "refresh_token"

    if-nez p3, :cond_0

    .line 28
    iget-object p3, p0, Les/r30;->c:Les/t30;

    invoke-virtual {p3, p1}, Les/t30;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    if-eqz p3, :cond_0

    .line 29
    iget-object v0, p0, Les/r30;->c:Les/t30;

    invoke-virtual {v0, p1}, Les/t30;->c(Ljava/lang/String;)J

    move-result-wide v0

    .line 30
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    sub-long/2addr v0, v2

    const-wide/32 v2, 0xea60

    cmp-long v4, v0, v2

    if-lez v4, :cond_0

    return-object p3

    .line 31
    :cond_0
    iget-object p3, p0, Les/r30;->c:Les/t30;

    invoke-virtual {p3, p1}, Les/t30;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    const/4 v0, 0x0

    if-nez p3, :cond_1

    return-object v0

    :cond_1
    const/16 v1, 0x8

    :try_start_0
    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    const-string v3, "client_id"

    aput-object v3, v1, v2

    const/4 v2, 0x1

    const-string v3, "1033052592302-dh9bgum85ac61bd4keltlbpk0vqh5hdn.apps.googleusercontent.com"

    aput-object v3, v1, v2

    const/4 v2, 0x2

    const-string v3, "client_secret"

    aput-object v3, v1, v2

    const/4 v2, 0x3

    const-string v3, "PA31HP-HTZyOVgAvp_HusYp_"

    aput-object v3, v1, v2

    const/4 v2, 0x4

    aput-object p2, v1, v2

    const/4 v2, 0x5

    aput-object p3, v1, v2

    const/4 v2, 0x6

    const-string v3, "grant_type"

    aput-object v3, v1, v2

    const/4 v2, 0x7

    aput-object p2, v1, v2

    .line 32
    new-instance v2, Lorg/apache/http/client/methods/HttpPost;

    const-string v3, "https://accounts.google.com/o/oauth2/token"

    invoke-direct {v2, v3}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    .line 33
    invoke-static {v2, v1}, Lcom/estrongs/android/pop/netfs/utils/HttpUtils;->setParameters(Lorg/apache/http/client/methods/HttpPost;[Ljava/lang/Object;)V

    .line 34
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object v1

    .line 35
    invoke-interface {v1, v2}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v1

    .line 36
    invoke-virtual {p0, v1}, Les/r30;->a(Lorg/apache/http/HttpResponse;)Ljava/util/Map;

    move-result-object v2

    .line 37
    invoke-interface {v1}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v3

    if-eqz v3, :cond_2

    .line 38
    invoke-interface {v1}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object v1

    invoke-interface {v1}, Lorg/apache/http/HttpEntity;->consumeContent()V

    :cond_2
    const-string v1, "error"

    .line 39
    invoke-direct {p0, v2, v1}, Les/r30;->a(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    if-eqz v1, :cond_3

    return-object v0

    :cond_3
    const-string v1, "access_token"

    .line 40
    invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    if-nez v1, :cond_4

    return-object v0

    .line 41
    :cond_4
    iget-object v3, p0, Les/r30;->c:Les/t30;

    invoke-virtual {v3, p1, v1}, Les/t30;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 42
    invoke-interface {v2, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/lang/String;

    if-eqz p2, :cond_5

    .line 43
    invoke-virtual {p2, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-nez p3, :cond_5

    .line 44
    iget-object p3, p0, Les/r30;->c:Les/t30;

    invoke-virtual {p3, p1, p2}, Les/t30;->b(Ljava/lang/String;Ljava/lang/String;)V

    :cond_5
    const-string p2, "expires_in"

    .line 45
    invoke-static {v2, p2}, Lcom/estrongs/android/pop/netfs/utils/HttpUtils;->getInt(Ljava/lang/Object;Ljava/lang/String;)I

    move-result p2

    .line 46
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    mul-int/lit16 p2, p2, 0x3e8

    int-to-long p2, p2

    add-long/2addr v2, p2

    .line 47
    iget-object p2, p0, Les/r30;->c:Les/t30;

    invoke-virtual {p2, p1, v2, v3}, Les/t30;->a(Ljava/lang/String;J)V

    .line 48
    iget-object p1, p0, Les/r30;->c:Les/t30;

    invoke-virtual {p1}, Les/t30;->b()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v1

    :catch_0
    move-exception p1

    .line 49
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return-object v0
.end method

.method static synthetic a(Les/r30;Ljava/lang/String;Ljava/io/InputStream;JJLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 0

    .line 3
    invoke-direct/range {p0 .. p9}, Les/r30;->a(Ljava/lang/String;Ljava/io/InputStream;JJLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p0

    return p0
.end method

.method static synthetic a(Les/r30;Ljava/lang/String;Ljava/io/InputStream;JLjava/lang/String;Ljava/lang/String;)Z
    .locals 0

    .line 2
    invoke-direct/range {p0 .. p6}, Les/r30;->a(Ljava/lang/String;Ljava/io/InputStream;JLjava/lang/String;Ljava/lang/String;)Z

    move-result p0

    return p0
.end method

.method private a(Ljava/lang/String;Ljava/io/InputStream;JJLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 22

    move-object/from16 v10, p0

    move-object/from16 v0, p7

    move-object/from16 v11, p8

    const/4 v12, 0x0

    .line 250
    :try_start_0
    invoke-direct {v10, v0, v11}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-nez v1, :cond_0

    return v12

    .line 251
    :cond_0
    invoke-direct/range {p0 .. p0}, Les/r30;->d()I

    move-result v13

    .line 252
    new-array v14, v13, [B

    move-wide/from16 v1, p5

    move-wide v15, v1

    .line 253
    :goto_0
    invoke-static {}, Lcom/estrongs/android/util/f0;->d()Z

    move-result v3

    if-nez v3, :cond_1

    return v12

    :cond_1
    sub-long v3, p3, v1

    int-to-long v5, v13

    cmp-long v7, v3, v5

    if-lez v7, :cond_2

    move v4, v13

    goto :goto_1

    :cond_2
    long-to-int v4, v3

    :goto_1
    const/4 v9, 0x0

    :goto_2
    if-ge v9, v4, :cond_4

    sub-int v3, v4, v9

    move-object/from16 v7, p2

    .line 254
    invoke-virtual {v7, v14, v9, v3}, Ljava/io/InputStream;->read([BII)I

    move-result v3

    const/4 v5, -0x1

    if-ne v3, v5, :cond_3

    return v12

    :cond_3
    add-int/2addr v9, v3

    goto :goto_2

    :cond_4
    move-object/from16 v7, p2

    int-to-long v3, v4

    add-long v17, v1, v3

    const/16 v1, 0x3e8

    const/4 v6, 0x0

    const/16 v8, 0x3e8

    :goto_3
    const/4 v4, 0x3

    const/4 v5, 0x1

    if-ge v6, v4, :cond_9

    .line 255
    invoke-direct {v10, v0, v11}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_5

    return v12

    :cond_5
    move-object/from16 v1, p0

    move-object/from16 v2, p1

    const/4 v12, 0x1

    move-wide v4, v15

    move/from16 v19, v6

    move v6, v9

    move/from16 v20, v8

    move-wide/from16 v7, p3

    move/from16 v21, v9

    move-object v9, v14

    .line 256
    invoke-direct/range {v1 .. v9}, Les/r30;->a(Ljava/lang/String;Ljava/lang/String;JIJ[B)I

    move-result v1

    if-nez v1, :cond_6

    return v12

    :cond_6
    if-ne v1, v12, :cond_7

    move/from16 v1, v19

    goto :goto_4

    :cond_7
    const/4 v2, 0x2

    if-ne v1, v2, :cond_8

    const/4 v1, 0x0

    return v1

    :cond_8
    move/from16 v1, v19

    add-int/lit8 v6, v1, 0x1

    move/from16 v1, v20

    int-to-long v2, v1

    .line 257
    invoke-static {v2, v3}, Landroid/os/SystemClock;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    mul-int/lit8 v8, v1, 0x2

    move-object/from16 v7, p2

    move/from16 v9, v21

    const/4 v12, 0x0

    goto :goto_3

    :cond_9
    move v1, v6

    move/from16 v21, v9

    const/4 v12, 0x1

    :goto_4
    const/4 v2, 0x3

    if-lt v1, v2, :cond_a

    const/4 v1, 0x0

    return v1

    :cond_a
    move/from16 v9, v21

    int-to-long v1, v9

    add-long/2addr v15, v1

    cmp-long v1, v15, p3

    if-ltz v1, :cond_b

    return v12

    :cond_b
    move-wide/from16 v1, v17

    const/4 v12, 0x0

    goto :goto_0

    :catchall_0
    move-exception v0

    .line 258
    throw v0

    :catch_0
    const/4 v0, 0x0

    return v0
.end method

.method private a(Ljava/lang/String;Ljava/io/InputStream;JLjava/lang/String;Ljava/lang/String;)Z
    .locals 2

    .line 232
    new-instance v0, Lorg/apache/http/client/methods/HttpPut;

    invoke-direct {v0, p1}, Lorg/apache/http/client/methods/HttpPut;-><init>(Ljava/lang/String;)V

    .line 233
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Bearer "

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string p5, "Authorization"

    invoke-virtual {v0, p5, p1}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string p1, "Content-Type"

    .line 234
    invoke-virtual {v0, p1, p6}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 235
    new-instance p1, Lcom/estrongs/android/pop/netfs/utils/LargeInputStreamEntity;

    invoke-direct {p1, p2, p3, p4}, Lcom/estrongs/android/pop/netfs/utils/LargeInputStreamEntity;-><init>(Ljava/io/InputStream;J)V

    .line 236
    invoke-virtual {v0, p1}, Lorg/apache/http/client/methods/HttpPut;->setEntity(Lorg/apache/http/HttpEntity;)V

    const/4 p1, 0x0

    .line 237
    :try_start_0
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p2

    .line 238
    invoke-interface {p2, v0}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p2

    .line 239
    invoke-interface {p2}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/16 p3, 0xc8

    if-eq p2, p3, :cond_1

    const/16 p3, 0xc9

    if-ne p2, p3, :cond_0

    goto :goto_0

    :cond_0
    return p1

    :cond_1
    :goto_0
    const/4 p1, 0x1

    return p1

    :catch_0
    move-exception p2

    .line 240
    invoke-virtual {p2}, Ljava/lang/Exception;->printStackTrace()V

    return p1
.end method

.method private a(Lorg/json/simple/JSONObject;)Z
    .locals 1

    const-string v0, "sharedWithMeDate"

    .line 70
    invoke-virtual {p1, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result p1

    return p1
.end method

.method public static b()Les/r30;
    .locals 2

    .line 1
    new-instance v0, Les/r30;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Les/r30;-><init>(Z)V

    return-object v0
.end method

.method private b(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    const-string v0, "/"

    .line 2
    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    return-object v1

    .line 3
    :cond_0
    invoke-direct {p0, p1}, Les/r30;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const/16 v0, 0x2f

    .line 4
    invoke-virtual {p1, v0}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v0

    if-ltz v0, :cond_1

    add-int/lit8 v0, v0, 0x1

    .line 5
    invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1

    return-object p1

    :cond_1
    return-object v1
.end method

.method private b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/4 v0, 0x1

    .line 6
    invoke-virtual {p0, p1, p2, p3, v0}, Les/r30;->exists(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result p1

    return p1
.end method

.method private c(Ljava/lang/String;)I
    .locals 1

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "@Gdrive"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 3
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v0

    invoke-virtual {v0, p1}, Les/s30;->c(Ljava/lang/String;)I

    move-result v0

    if-nez v0, :cond_0

    .line 4
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v0

    invoke-virtual {v0, p1}, Les/s30;->a(Ljava/lang/String;)V

    .line 5
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v0

    invoke-virtual {v0, p1}, Les/s30;->c(Ljava/lang/String;)I

    move-result v0

    :cond_0
    return v0
.end method

.method public static c()Les/r30;
    .locals 2

    .line 1
    new-instance v0, Les/r30;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Les/r30;-><init>(Z)V

    return-object v0
.end method

.method private c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    .line 6
    invoke-direct {p0, p1}, Les/r30;->c(Ljava/lang/String;)I

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x0

    return-object p1

    .line 7
    :cond_0
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Les/s30;->b(ILjava/lang/String;)I

    move-result p2

    .line 8
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Les/s30;->a(II)Les/s30$a;

    move-result-object p1

    return-object p1
.end method

.method private d()I
    .locals 4

    .line 6
    :try_start_0
    invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Runtime;->freeMemory()J

    move-result-wide v0

    const-wide/32 v2, 0x100000

    div-long/2addr v0, v2

    long-to-int v1, v0

    const/16 v0, 0x14

    if-lt v1, v0, :cond_0

    const/high16 v0, 0xa00000

    return v0

    :cond_0
    const/16 v0, 0xa

    if-lt v1, v0, :cond_1

    const/high16 v0, 0x500000

    return v0

    :cond_1
    const/4 v0, 0x1

    if-gt v1, v0, :cond_2

    const/high16 v0, 0x80000

    return v0

    .line 7
    :cond_2
    div-int/lit8 v1, v1, 0x2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    mul-int/lit16 v1, v1, 0x400

    mul-int/lit16 v1, v1, 0x400

    return v1

    :catchall_0
    const/high16 v0, 0x100000

    return v0
.end method

.method private d(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    const-string v0, "/"

    .line 1
    invoke-virtual {p1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    :cond_0
    return-object p1
.end method

.method private d(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    :try_start_0
    const-string v0, "/"

    .line 3
    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string p1, "root"

    return-object p1

    .line 4
    :cond_0
    invoke-direct {p0, p1, p2}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 5
    iget-object p1, p1, Les/s30$a;->r:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    :cond_1
    const/4 p1, 0x0

    return-object p1
.end method

.method private e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, p2, v0}, Les/r30;->a(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method


# virtual methods
.method public a(Les/s30$a;)Lcom/estrongs/android/pop/netfs/NetFileInfo;
    .locals 6

    if-nez p1, :cond_0

    const/4 p1, 0x0

    return-object p1

    .line 50
    :cond_0
    new-instance v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;

    invoke-direct {v0}, Lcom/estrongs/android/pop/netfs/NetFileInfo;-><init>()V

    .line 51
    iget-object v1, p1, Les/s30$a;->d:Ljava/lang/String;

    iput-object v1, v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;->path:Ljava/lang/String;

    .line 52
    invoke-direct {p0, v1}, Les/r30;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;->name:Ljava/lang/String;

    .line 53
    iget v2, p1, Les/s30$a;->g:I

    int-to-long v2, v2

    iput-wide v2, v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;->lastModifiedTime:J

    const-wide/16 v4, 0x3e8

    mul-long v2, v2, v4

    .line 54
    iput-wide v2, v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;->lastModifiedTime:J

    const/4 v2, 0x1

    .line 55
    iput-boolean v2, v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;->readable:Z

    .line 56
    iput-boolean v2, v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;->writable:Z

    const-string v3, "."

    .line 57
    invoke-virtual {v1, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    iput-boolean v1, v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;->hidden:Z

    .line 58
    iget v1, p1, Les/s30$a;->e:I

    const/4 v3, 0x0

    if-ne v1, v2, :cond_1

    goto :goto_0

    :cond_1
    const/4 v2, 0x0

    :goto_0
    iput-boolean v2, v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;->isDirectory:Z

    .line 59
    iget-wide v1, p1, Les/s30$a;->h:J

    iput-wide v1, v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;->size:J

    .line 60
    iget-boolean v1, p1, Les/s30$a;->v:Z

    if-eqz v1, :cond_2

    const/16 p1, 0x8

    .line 61
    iput p1, v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;->folder_type:I

    goto :goto_1

    .line 62
    :cond_2
    iget-boolean p1, p1, Les/s30$a;->w:Z

    if-eqz p1, :cond_3

    const/16 p1, 0x40

    .line 63
    iput p1, v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;->folder_type:I

    goto :goto_1

    .line 64
    :cond_3
    iput v3, v0, Lcom/estrongs/android/pop/netfs/NetFileInfo;->folder_type:I

    :goto_1
    return-object v0
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/android/pop/netfs/NetFileInfo;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 219
    invoke-virtual {p0, p1, p2, p3, v0}, Les/r30;->getFileInfo(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Lcom/estrongs/android/pop/netfs/NetFileInfo;

    move-result-object p1

    return-object p1
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Les/s30$a;)Les/s30$a;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/4 v0, 0x0

    if-nez p4, :cond_0

    .line 205
    :try_start_0
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p4

    goto :goto_0

    :catch_0
    move-exception p1

    goto/16 :goto_2

    :cond_0
    :goto_0
    if-eqz p4, :cond_5

    .line 206
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "https://www.googleapis.com/drive/v2/files/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p4, p4, Les/s30$a;->r:Ljava/lang/String;

    invoke-virtual {v1, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p4

    .line 207
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_1

    return-object v0

    .line 208
    :cond_1
    new-instance p2, Lorg/apache/http/client/methods/HttpGet;

    invoke-direct {p2, p4}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V

    const-string p4, "Authorization"

    .line 209
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Bearer "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p4, p1}, Lorg/apache/http/client/methods/HttpGet;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string p1, "Content-Type"

    const-string p4, "application/json"

    .line 210
    invoke-virtual {p2, p1, p4}, Lorg/apache/http/client/methods/HttpGet;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 211
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p1

    .line 212
    invoke-interface {p1, p2}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p1

    .line 213
    invoke-virtual {p0, p1}, Les/r30;->a(Lorg/apache/http/HttpResponse;)Ljava/util/Map;

    move-result-object p2

    .line 214
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p4

    invoke-interface {p4}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p4

    const/16 v1, 0xc8

    if-eq p4, v1, :cond_2

    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p4

    invoke-interface {p4}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p4

    const/16 v1, 0xc9

    if-eq p4, v1, :cond_2

    .line 215
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p1

    invoke-interface {p1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p1

    const/16 p4, 0xcc

    if-ne p1, p4, :cond_4

    :cond_2
    if-eqz p2, :cond_4

    const-string p1, "error"

    .line 216
    invoke-interface {p2, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_3

    goto :goto_1

    .line 217
    :cond_3
    check-cast p2, Lorg/json/simple/JSONObject;

    invoke-direct {p0, p3}, Les/r30;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p2, p1}, Les/r30;->a(Lorg/json/simple/JSONObject;Ljava/lang/String;)Les/s30$a;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :cond_4
    :goto_1
    return-object v0

    .line 218
    :goto_2
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_5
    return-object v0
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/HashMap;)Ljava/util/HashMap;
    .locals 31
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Les/s30$a;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    move-object/from16 v1, p0

    move-object/from16 v0, p1

    move-object/from16 v2, p3

    move-object/from16 v3, p4

    const-string v4, "nextLink"

    const-string v5, "application/json"

    const-string v6, "Content-Type"

    const-string v7, "Bearer "

    const-string v8, "Authorization"

    const-string v9, "offset"

    const-string v10, "limit"

    .line 71
    invoke-direct/range {p0 .. p1}, Les/r30;->c(Ljava/lang/String;)I

    move-result v11

    .line 72
    invoke-direct {v1, v0, v2}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object v12

    const-string v14, "folder:shared-with-me-1033052592302"

    const/16 v16, 0x0

    if-eqz v12, :cond_0

    .line 73
    :try_start_0
    iget-object v15, v12, Les/s30$a;->m:Ljava/lang/String;

    .line 74
    invoke-virtual {v14, v15}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v15

    if-eqz v15, :cond_0

    const/4 v15, 0x1

    goto :goto_0

    :cond_0
    const/4 v15, 0x0

    .line 75
    :goto_0
    invoke-direct {v1, v0, v2}, Les/r30;->d(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    if-nez v13, :cond_1

    return-object v16

    :cond_1
    const-string v18, "items(sharingUser,thumbnailLink,id,exportLinks,mimeType,createdDate,modifiedDate,webViewLink,webContentLink,fileSize,parents(id,isRoot),title,shared,sharedWithMeDate),nextLink"

    move-object/from16 v19, v14

    .line 76
    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    move/from16 v20, v11

    const-string v11, "https://www.googleapis.com/drive/v2/files?q="

    invoke-virtual {v14, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v21, v12

    const-string v12, "not trashed and \'"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v12, "\' in parents"

    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    invoke-static {v11}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v14, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    if-eqz v15, :cond_2

    const-string v11, "https://www.googleapis.com/drive/v2/files?q=sharedWithMe"

    .line 77
    :cond_2
    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v12, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v11, "&fields="

    invoke-virtual {v12, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static/range {v18 .. v18}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v12, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const-string v12, "total_entries"

    const-string v13, "next_link"

    if-eqz v3, :cond_7

    .line 78
    :try_start_1
    invoke-virtual {v3, v10}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v14

    if-eqz v14, :cond_7

    .line 79
    invoke-virtual {v3, v9}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v14

    if-eqz v14, :cond_7

    .line 80
    invoke-virtual {v3, v10}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/lang/Integer;

    invoke-virtual {v10}, Ljava/lang/Integer;->intValue()I

    move-result v10

    .line 81
    invoke-virtual {v3, v9}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/lang/Integer;

    invoke-virtual {v9}, Ljava/lang/Integer;->intValue()I

    move-result v9

    if-lez v10, :cond_6

    .line 82
    invoke-virtual {v3, v12}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v14

    if-nez v14, :cond_3

    .line 83
    new-instance v14, Ljava/util/HashMap;

    invoke-direct {v14}, Ljava/util/HashMap;-><init>()V

    .line 84
    invoke-virtual {v3, v12, v14}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 85
    :cond_3
    invoke-virtual {v3, v12}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v14

    check-cast v14, Ljava/util/HashMap;

    if-nez v9, :cond_4

    .line 86
    invoke-virtual {v3, v13}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 87
    :cond_4
    invoke-virtual {v3, v13}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_5

    .line 88
    invoke-virtual {v3, v13}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/lang/String;

    goto :goto_1

    :cond_5
    move-object/from16 v9, v16

    :goto_1
    const/16 v17, 0x1

    const/16 v18, 0x1

    goto :goto_3

    :cond_6
    move-object/from16 v9, v16

    move-object v14, v9

    goto :goto_2

    :cond_7
    move-object/from16 v9, v16

    move-object v14, v9

    const/4 v10, -0x1

    :goto_2
    const/16 v17, 0x0

    const/16 v18, 0x0

    :goto_3
    if-eqz v17, :cond_8

    if-eqz v9, :cond_8

    move-object v11, v9

    move-object/from16 v22, v16

    goto :goto_4

    :cond_8
    move-object/from16 v22, v9

    .line 89
    :goto_4
    new-instance v9, Ljava/util/HashMap;

    invoke-direct {v9}, Ljava/util/HashMap;-><init>()V

    move-object/from16 v23, v11

    const-string v11, "/"

    .line 90
    invoke-virtual {v2, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v11

    move-object/from16 v24, v12

    const-string v12, "root"

    move/from16 v26, v11

    const/16 v25, 0x0

    move-object/from16 v30, v23

    move-object/from16 v23, v12

    move-object/from16 v12, v30

    .line 91
    :goto_5
    invoke-direct/range {p0 .. p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    if-nez v11, :cond_9

    return-object v16

    :cond_9
    if-eqz v18, :cond_a

    move-object/from16 v27, v14

    .line 92
    new-instance v14, Ljava/lang/StringBuilder;

    invoke-direct {v14}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v14, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v12, "&maxResults="

    invoke-virtual {v14, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v14, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v14}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v12

    goto :goto_6

    :cond_a
    move-object/from16 v27, v14

    .line 93
    :goto_6
    new-instance v14, Lorg/apache/http/client/methods/HttpGet;

    invoke-direct {v14, v12}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V

    move/from16 v28, v10

    .line 94
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v10, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v14, v8, v10}, Lorg/apache/http/client/methods/HttpGet;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 95
    invoke-virtual {v14, v6, v5}, Lorg/apache/http/client/methods/HttpGet;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 96
    invoke-virtual/range {p0 .. p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object v10

    .line 97
    invoke-interface {v10, v14}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v10

    .line 98
    invoke-static {v10}, Lcom/estrongs/android/pop/netfs/utils/HttpUtils;->parseAsJSON(Lorg/apache/http/HttpResponse;)Ljava/util/Map;

    move-result-object v11

    .line 99
    invoke-interface {v10}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v10

    invoke-interface {v10}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v10

    const/16 v14, 0x191

    move-object/from16 v29, v11

    if-ne v10, v14, :cond_b

    move-object/from16 v14, p2

    const/4 v11, 0x1

    .line 100
    invoke-direct {v1, v0, v14, v11}, Les/r30;->a(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v10

    .line 101
    new-instance v11, Lorg/apache/http/client/methods/HttpGet;

    invoke-direct {v11, v12}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V

    .line 102
    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v12, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v11, v8, v10}, Lorg/apache/http/client/methods/HttpGet;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 103
    invoke-virtual {v11, v6, v5}, Lorg/apache/http/client/methods/HttpGet;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 104
    invoke-virtual {v11}, Lorg/apache/http/client/methods/HttpGet;->getURI()Ljava/net/URI;

    move-result-object v10

    invoke-virtual {v10}, Ljava/net/URI;->toString()Ljava/lang/String;

    .line 105
    invoke-virtual/range {p0 .. p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object v10

    .line 106
    invoke-interface {v10, v11}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v10

    .line 107
    invoke-static {v10}, Lcom/estrongs/android/pop/netfs/utils/HttpUtils;->parseAsJSON(Lorg/apache/http/HttpResponse;)Ljava/util/Map;

    move-result-object v11

    .line 108
    invoke-interface {v10}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v10

    invoke-interface {v10}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v10

    const/16 v12, 0x190

    if-lt v10, v12, :cond_d

    return-object v16

    :cond_b
    move-object/from16 v14, p2

    const/16 v11, 0x190

    if-lt v10, v11, :cond_c

    return-object v16

    :cond_c
    move-object/from16 v11, v29

    :cond_d
    if-nez v11, :cond_e

    return-object v16

    .line 109
    :cond_e
    invoke-interface {v11, v4}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_10

    .line 110
    invoke-interface {v11, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Ljava/lang/String;

    if-eqz v17, :cond_f

    .line 111
    invoke-virtual {v3, v13, v10}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_f
    move-object v12, v10

    move-object/from16 v22, v12

    goto :goto_7

    :cond_10
    move-object/from16 v12, v16

    :goto_7
    const-string v10, "items"

    .line 112
    invoke-interface {v11, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    if-nez v10, :cond_11

    return-object v16

    .line 113
    :cond_11
    instance-of v11, v10, Lorg/json/simple/JSONArray;

    if-eqz v11, :cond_15

    .line 114
    check-cast v10, Lorg/json/simple/JSONArray;

    invoke-virtual {v10}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v10

    .line 115
    :goto_8
    invoke-interface {v10}, Ljava/util/Iterator;->hasNext()Z

    move-result v11

    if-eqz v11, :cond_15

    .line 116
    invoke-interface {v10}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Lorg/json/simple/JSONObject;

    if-eqz v15, :cond_13

    .line 117
    invoke-direct {v1, v11}, Les/r30;->a(Lorg/json/simple/JSONObject;)Z

    move-result v29

    if-nez v29, :cond_13

    :cond_12
    move-object/from16 v29, v4

    move-object/from16 v4, v27

    goto :goto_9

    .line 118
    :cond_13
    invoke-direct {v1, v11, v2}, Les/r30;->a(Lorg/json/simple/JSONObject;Ljava/lang/String;)Les/s30$a;

    move-result-object v11

    if-eqz v11, :cond_12

    if-nez v15, :cond_14

    .line 119
    iget-boolean v0, v11, Les/s30$a;->v:Z

    if-eqz v0, :cond_14

    add-int/lit8 v25, v25, 0x1

    move-object/from16 v0, p1

    goto :goto_8

    .line 120
    :cond_14
    iget-object v0, v11, Les/s30$a;->d:Ljava/lang/String;

    invoke-virtual {v9, v0, v11}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    if-eqz v17, :cond_12

    .line 121
    iget-object v0, v11, Les/s30$a;->d:Ljava/lang/String;

    move-object/from16 v29, v4

    move-object/from16 v4, v27

    invoke-virtual {v4, v0, v11}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :goto_9
    move-object/from16 v0, p1

    move-object/from16 v27, v4

    move-object/from16 v4, v29

    goto :goto_8

    :cond_15
    move-object/from16 v29, v4

    move-object/from16 v4, v27

    if-eqz v12, :cond_17

    if-eqz v17, :cond_16

    goto :goto_a

    :cond_16
    move-object/from16 v0, p1

    move-object v14, v4

    move/from16 v10, v28

    move-object/from16 v4, v29

    goto/16 :goto_5

    :cond_17
    :goto_a
    if-nez v21, :cond_19

    .line 122
    new-instance v0, Les/s30$a;

    invoke-direct {v0}, Les/s30$a;-><init>()V

    move/from16 v5, v20

    .line 123
    iput v5, v0, Les/s30$a;->b:I

    .line 124
    iput-object v2, v0, Les/s30$a;->d:Ljava/lang/String;

    const/4 v6, 0x1

    .line 125
    iput v6, v0, Les/s30$a;->e:I

    if-eqz v26, :cond_18

    const/4 v6, 0x0

    .line 126
    iput v6, v0, Les/s30$a;->c:I

    move-object/from16 v6, v23

    .line 127
    iput-object v6, v0, Les/s30$a;->r:Ljava/lang/String;

    const-string v6, ""

    .line 128
    iput-object v6, v0, Les/s30$a;->q:Ljava/lang/String;

    goto :goto_b

    .line 129
    :cond_18
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v6

    invoke-direct {v1, v2}, Les/r30;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v5, v7}, Les/s30;->b(ILjava/lang/String;)I

    move-result v6

    iput v6, v0, Les/s30$a;->c:I

    .line 130
    :goto_b
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v6

    invoke-virtual {v6, v0}, Les/s30;->a(Les/s30$a;)V

    .line 131
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v0

    invoke-virtual {v0, v5, v2}, Les/s30;->a(ILjava/lang/String;)Les/s30$a;

    move-result-object v12

    goto :goto_c

    :cond_19
    move/from16 v5, v20

    move-object/from16 v12, v21

    :goto_c
    if-eqz v17, :cond_1c

    if-nez v22, :cond_1b

    .line 132
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v0

    iget v6, v12, Les/s30$a;->a:I

    const/4 v7, 0x0

    invoke-virtual {v0, v5, v6, v4, v7}, Les/s30;->a(IILjava/util/HashMap;Z)V

    .line 133
    invoke-virtual {v4}, Ljava/util/HashMap;->clear()V

    move-object/from16 v0, v24

    .line 134
    invoke-virtual {v3, v0}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 135
    invoke-virtual {v3, v13}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    const-string v0, "loadFinished"

    const/4 v4, 0x1

    .line 136
    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v6

    invoke-virtual {v3, v0, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    if-eqz v26, :cond_1d

    const-string v0, "Shared with me"

    if-lez v25, :cond_1a

    add-int/lit8 v3, v25, 0x1

    .line 137
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, " "

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 138
    :cond_1a
    new-instance v3, Les/s30$a;

    invoke-direct {v3}, Les/s30$a;-><init>()V

    .line 139
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v3, Les/s30$a;->d:Ljava/lang/String;

    move-object/from16 v2, v19

    .line 140
    iput-object v2, v3, Les/s30$a;->m:Ljava/lang/String;

    const/4 v2, 0x1

    .line 141
    iput v2, v3, Les/s30$a;->e:I

    .line 142
    iput-boolean v2, v3, Les/s30$a;->v:Z

    .line 143
    invoke-virtual {v9, v0, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 144
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v0

    iget v3, v12, Les/s30$a;->a:I

    invoke-virtual {v0, v5, v3, v9, v2}, Les/s30;->a(IILjava/util/HashMap;Z)V

    goto :goto_d

    .line 145
    :cond_1b
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v0

    iget v2, v12, Les/s30$a;->a:I

    const/4 v3, 0x1

    invoke-virtual {v0, v5, v2, v9, v3}, Les/s30;->a(IILjava/util/HashMap;Z)V

    goto :goto_d

    .line 146
    :cond_1c
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v0

    iget v2, v12, Les/s30$a;->a:I

    const/4 v3, 0x0

    invoke-virtual {v0, v5, v2, v9, v3}, Les/s30;->a(IILjava/util/HashMap;Z)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :cond_1d
    :goto_d
    return-object v9

    :catch_0
    move-exception v0

    .line 147
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    return-object v16
.end method

.method public a(Lorg/apache/http/HttpResponse;)Ljava/util/Map;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 4
    invoke-static {p1}, Lcom/estrongs/android/pop/netfs/utils/HttpUtils;->readResponse(Lorg/apache/http/HttpResponse;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 5
    :try_start_0
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 6
    :cond_0
    new-instance v0, Lorg/json/simple/parser/JSONParser;

    invoke-direct {v0}, Lorg/json/simple/parser/JSONParser;-><init>()V

    .line 7
    invoke-virtual {v0, p1}, Lorg/json/simple/parser/JSONParser;->parse(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/util/Map;

    goto :goto_1

    .line 8
    :cond_1
    :goto_0
    new-instance p1, Ljava/util/HashMap;

    invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
    :try_end_0
    .catch Lorg/json/simple/parser/ParseException; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    .line 9
    :catch_0
    new-instance p1, Ljava/util/HashMap;

    invoke-direct {p1}, Ljava/util/HashMap;-><init>()V

    const-string v0, "error"

    const-string v1, "Unknown Error"

    .line 10
    invoke-interface {p1, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :goto_1
    return-object p1
.end method

.method public a()Lorg/apache/http/client/HttpClient;
    .locals 1

    const/16 v0, 0x7530

    .line 11
    invoke-virtual {p0, v0}, Les/r30;->a(I)Lorg/apache/http/client/HttpClient;

    move-result-object v0

    return-object v0
.end method

.method public a(I)Lorg/apache/http/client/HttpClient;
    .locals 7

    .line 12
    :try_start_0
    invoke-static {}, Ljava/security/KeyStore;->getDefaultType()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/security/KeyStore;->getInstance(Ljava/lang/String;)Ljava/security/KeyStore;

    move-result-object v0

    const/4 v1, 0x0

    .line 13
    invoke-virtual {v0, v1, v1}, Ljava/security/KeyStore;->load(Ljava/io/InputStream;[C)V

    .line 14
    new-instance v1, Les/r30$c;

    invoke-direct {v1, p0, v0}, Les/r30$c;-><init>(Les/r30;Ljava/security/KeyStore;)V

    .line 15
    sget-object v0, Lorg/apache/http/conn/ssl/SSLSocketFactory;->ALLOW_ALL_HOSTNAME_VERIFIER:Lorg/apache/http/conn/ssl/X509HostnameVerifier;

    invoke-virtual {v1, v0}, Lorg/apache/http/conn/ssl/SSLSocketFactory;->setHostnameVerifier(Lorg/apache/http/conn/ssl/X509HostnameVerifier;)V

    .line 16
    new-instance v0, Lorg/apache/http/params/BasicHttpParams;

    invoke-direct {v0}, Lorg/apache/http/params/BasicHttpParams;-><init>()V

    .line 17
    sget-object v2, Lorg/apache/http/HttpVersion;->HTTP_1_1:Lorg/apache/http/HttpVersion;

    invoke-static {v0, v2}, Lorg/apache/http/params/HttpProtocolParams;->setVersion(Lorg/apache/http/params/HttpParams;Lorg/apache/http/ProtocolVersion;)V

    const-string v2, "UTF-8"

    .line 18
    invoke-static {v0, v2}, Lorg/apache/http/params/HttpProtocolParams;->setContentCharset(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V

    .line 19
    new-instance v2, Lorg/apache/http/conn/scheme/SchemeRegistry;

    invoke-direct {v2}, Lorg/apache/http/conn/scheme/SchemeRegistry;-><init>()V

    .line 20
    new-instance v3, Lorg/apache/http/conn/scheme/Scheme;

    const-string v4, "http"

    invoke-static {}, Lorg/apache/http/conn/scheme/PlainSocketFactory;->getSocketFactory()Lorg/apache/http/conn/scheme/PlainSocketFactory;

    move-result-object v5

    const/16 v6, 0x50

    invoke-direct {v3, v4, v5, v6}, Lorg/apache/http/conn/scheme/Scheme;-><init>(Ljava/lang/String;Lorg/apache/http/conn/scheme/SocketFactory;I)V

    invoke-virtual {v2, v3}, Lorg/apache/http/conn/scheme/SchemeRegistry;->register(Lorg/apache/http/conn/scheme/Scheme;)Lorg/apache/http/conn/scheme/Scheme;

    .line 21
    new-instance v3, Lorg/apache/http/conn/scheme/Scheme;

    const-string v4, "https"

    const/16 v5, 0x1bb

    invoke-direct {v3, v4, v1, v5}, Lorg/apache/http/conn/scheme/Scheme;-><init>(Ljava/lang/String;Lorg/apache/http/conn/scheme/SocketFactory;I)V

    invoke-virtual {v2, v3}, Lorg/apache/http/conn/scheme/SchemeRegistry;->register(Lorg/apache/http/conn/scheme/Scheme;)Lorg/apache/http/conn/scheme/Scheme;

    .line 22
    new-instance v1, Lorg/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager;

    invoke-direct {v1, v0, v2}, Lorg/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager;-><init>(Lorg/apache/http/params/HttpParams;Lorg/apache/http/conn/scheme/SchemeRegistry;)V

    .line 23
    invoke-static {v0, p1}, Lorg/apache/http/params/HttpConnectionParams;->setConnectionTimeout(Lorg/apache/http/params/HttpParams;I)V

    .line 24
    invoke-static {v0, p1}, Lorg/apache/http/params/HttpConnectionParams;->setSoTimeout(Lorg/apache/http/params/HttpParams;I)V

    .line 25
    new-instance p1, Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-direct {p1, v1, v0}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>(Lorg/apache/http/conn/ClientConnectionManager;Lorg/apache/http/params/HttpParams;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    .line 26
    :catch_0
    new-instance p1, Lorg/apache/http/impl/client/DefaultHttpClient;

    invoke-direct {p1}, Lorg/apache/http/impl/client/DefaultHttpClient;-><init>()V

    return-object p1
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    .line 259
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method public addServer(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0, p1, p2}, Les/r30;->a(Ljava/lang/String;Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_0

    const/4 p1, 0x0

    return p1

    .line 2
    :cond_0
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object p2

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "@Gdrive"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Les/s30;->a(Ljava/lang/String;)V

    const/4 p1, 0x1

    return p1
.end method

.method public b(Ljava/lang/String;Ljava/lang/String;)[J
    .locals 9

    const-string v0, ""

    const-string v1, "Bearer "

    const-string v2, "Authorization"

    const-string v3, "https://www.googleapis.com/drive/v2/about"

    const/4 v4, 0x0

    .line 7
    :try_start_0
    new-instance v5, Lorg/apache/http/client/methods/HttpGet;

    invoke-direct {v5, v3}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V

    .line 8
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    if-nez v6, :cond_0

    return-object v4

    .line 9
    :cond_0
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v2, v6}, Lorg/apache/http/client/methods/HttpGet;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 10
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object v6

    .line 11
    invoke-interface {v6, v5}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v5

    .line 12
    invoke-interface {v5}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v6

    invoke-interface {v6}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v6

    const/16 v7, 0x191

    const/4 v8, 0x1

    if-ne v6, v7, :cond_1

    .line 13
    invoke-direct {p0, p1, p2, v8}, Les/r30;->a(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object p1

    .line 14
    new-instance p2, Lorg/apache/http/client/methods/HttpGet;

    invoke-direct {p2, v3}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V

    .line 15
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, v2, p1}, Lorg/apache/http/client/methods/HttpGet;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 16
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p1

    .line 17
    invoke-interface {p1, p2}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v5

    .line 18
    :cond_1
    invoke-virtual {p0, v5}, Les/r30;->a(Lorg/apache/http/HttpResponse;)Ljava/util/Map;

    move-result-object p1

    const-string p2, "error"

    .line 19
    invoke-direct {p0, p1, p2}, Les/r30;->a(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p2

    if-eqz p2, :cond_2

    return-object v4

    .line 20
    :cond_2
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "quotaBytesTotal"

    invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 21
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "quotaBytesUsedAggregate"

    invoke-interface {p1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const/4 v0, 0x2

    new-array v0, v0, [J

    const/4 v1, 0x0

    .line 22
    invoke-static {p2}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v2

    aput-wide v2, v0, v1

    .line 23
    invoke-static {p1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide p1

    aput-wide p1, v0, v8
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    move-exception p1

    .line 24
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return-object v4
.end method

.method public copyFile(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    if-nez p2, :cond_0

    return v0

    .line 2
    :cond_0
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object v1

    .line 3
    invoke-direct {p0, p3}, Les/r30;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    .line 4
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p3

    .line 5
    invoke-direct {p0, p4}, Les/r30;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p4

    .line 6
    invoke-direct {p0, p1, p4}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p1

    .line 7
    iget-object p3, p3, Les/s30$a;->r:Ljava/lang/String;

    .line 8
    iget-object p1, p1, Les/s30$a;->r:Ljava/lang/String;

    .line 9
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string p4, "https://www.googleapis.com/drive/v2/files/"

    invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p4, v1, Les/s30$a;->r:Ljava/lang/String;

    invoke-static {p4}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p4

    invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p4, "?addParents="

    invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 10
    new-instance p3, Lorg/apache/http/client/methods/HttpPut;

    invoke-direct {p3, p1}, Lorg/apache/http/client/methods/HttpPut;-><init>(Ljava/lang/String;)V

    const-string p1, "Authorization"

    .line 11
    new-instance p4, Ljava/lang/StringBuilder;

    invoke-direct {p4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Bearer "

    invoke-virtual {p4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p4, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p3, p1, p2}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string p1, "Content-Type"

    const-string p2, "application/json"

    .line 12
    invoke-virtual {p3, p1, p2}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 13
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p1

    .line 14
    invoke-interface {p1, p3}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p1

    .line 15
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2

    const/16 p3, 0xc8

    if-eq p2, p3, :cond_1

    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2

    const/16 p3, 0xc9

    if-eq p2, p3, :cond_1

    .line 16
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p1

    invoke-interface {p1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/16 p2, 0xcc

    if-eq p1, p2, :cond_1

    return v0

    :cond_1
    const/4 p1, 0x1

    return p1

    :catch_0
    move-exception p1

    .line 17
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return v0
.end method

.method public createFile(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Z
    .locals 10

    const-string v0, "/"

    .line 1
    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    return v1

    .line 2
    :cond_0
    invoke-direct {p0, p3}, Les/r30;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    const/4 v0, 0x0

    .line 3
    :try_start_0
    invoke-direct {p0, p1, p2, p3}, Les/r30;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    return v1

    .line 4
    :cond_1
    invoke-direct {p0, p3}, Les/r30;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 5
    invoke-direct {p0, p1, p2, v2}, Les/r30;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_2

    .line 6
    invoke-virtual {p0, p1, p2, v2}, Les/r30;->mkDirs(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    .line 7
    :cond_2
    invoke-direct {p0, p1, v2}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object v3

    if-nez v3, :cond_3

    return v0

    .line 8
    :cond_3
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_4

    return v0

    .line 9
    :cond_4
    invoke-direct {p0, p1, p2, p3}, Les/r30;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_5

    return v1

    .line 10
    :cond_5
    invoke-direct {p0, p3}, Les/r30;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 11
    new-instance v5, Lorg/json/simple/JSONObject;

    invoke-direct {v5}, Lorg/json/simple/JSONObject;-><init>()V

    .line 12
    new-instance v6, Lorg/json/simple/JSONArray;

    invoke-direct {v6}, Lorg/json/simple/JSONArray;-><init>()V

    .line 13
    new-instance v7, Lorg/json/simple/JSONObject;

    invoke-direct {v7}, Lorg/json/simple/JSONObject;-><init>()V

    const-string v8, "id"

    .line 14
    iget-object v9, v3, Les/s30$a;->r:Ljava/lang/String;

    invoke-virtual {v7, v8, v9}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v8, "title"

    .line 15
    invoke-virtual {v5, v8, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    if-nez p4, :cond_6

    const-string p2, "kind"

    const-string p4, "drive#fileLink"

    .line 16
    invoke-virtual {v7, p2, p4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    :cond_6
    const-string p2, "mimeType"

    const-string p4, "application/vnd.google-apps.folder"

    .line 17
    invoke-virtual {v5, p2, p4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 18
    :goto_0
    invoke-virtual {v6, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    const-string p2, "parents"

    .line 19
    invoke-virtual {v5, p2, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 20
    new-instance p2, Lorg/apache/http/client/methods/HttpPost;

    const-string p4, "https://www.googleapis.com/drive/v2/files"

    invoke-direct {p2, p4}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    const-string p4, "Authorization"

    .line 21
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "Bearer "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p2, p4, v4}, Lorg/apache/http/client/methods/HttpPost;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string p4, "Content-Type"

    const-string v4, "application/json"

    .line 22
    invoke-virtual {p2, p4, v4}, Lorg/apache/http/client/methods/HttpPost;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 23
    new-instance p4, Lorg/apache/http/entity/StringEntity;

    invoke-virtual {v5}, Lorg/json/simple/JSONObject;->toString()Ljava/lang/String;

    move-result-object v4

    const-string v5, "UTF-8"

    invoke-direct {p4, v4, v5}, Lorg/apache/http/entity/StringEntity;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p2, p4}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    .line 24
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p4

    .line 25
    invoke-interface {p4, p2}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p2

    .line 26
    invoke-virtual {p0, p2}, Les/r30;->a(Lorg/apache/http/HttpResponse;)Ljava/util/Map;

    move-result-object p4

    .line 27
    invoke-interface {p2}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2

    const/16 v4, 0xc8

    if-eq p2, v4, :cond_7

    const/16 v4, 0xc9

    if-eq p2, v4, :cond_7

    return v0

    :cond_7
    if-eqz p4, :cond_9

    const-string p2, "error"

    .line 28
    invoke-interface {p4, p2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_8

    goto :goto_1

    .line 29
    :cond_8
    check-cast p4, Lorg/json/simple/JSONObject;

    invoke-direct {p0, p4, v2}, Les/r30;->a(Lorg/json/simple/JSONObject;Ljava/lang/String;)Les/s30$a;

    move-result-object p2

    .line 30
    invoke-direct {p0, p1}, Les/r30;->c(Ljava/lang/String;)I

    move-result p1

    iput p1, p2, Les/s30$a;->b:I

    .line 31
    iget p1, v3, Les/s30$a;->a:I

    iput p1, p2, Les/s30$a;->c:I

    .line 32
    iput-object p3, p2, Les/s30$a;->d:Ljava/lang/String;

    .line 33
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object p1

    invoke-virtual {p1, p2}, Les/s30;->a(Les/s30$a;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_9
    :goto_1
    return v1

    :catch_0
    return v0
.end method

.method public createShare(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/HashMap;)Ljava/lang/String;
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)",
            "Ljava/lang/String;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    .line 1
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p3

    const/4 p4, 0x0

    if-nez p3, :cond_0

    return-object p4

    .line 2
    :cond_0
    :try_start_0
    iget-boolean v0, p3, Les/s30$a;->w:Z

    if-nez v0, :cond_2

    .line 3
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "https://www.googleapis.com/drive/v2/files/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p3, Les/s30$a;->r:Ljava/lang/String;

    invoke-static {v1}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/permissions"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 4
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_1

    return-object p4

    .line 5
    :cond_1
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p2

    .line 6
    new-instance v1, Lorg/json/simple/JSONObject;

    invoke-direct {v1}, Lorg/json/simple/JSONObject;-><init>()V

    const-string v2, "role"

    const-string v3, "reader"

    .line 7
    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v2, "type"

    const-string v3, "anyone"

    .line 8
    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 9
    new-instance v2, Lorg/apache/http/client/methods/HttpPost;

    invoke-direct {v2, v0}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    const-string v0, "Authorization"

    .line 10
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Bearer "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, v0, p1}, Lorg/apache/http/client/methods/HttpPost;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string p1, "Content-Type"

    const-string v0, "application/json"

    .line 11
    invoke-virtual {v2, p1, v0}, Lorg/apache/http/client/methods/HttpPost;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 12
    new-instance p1, Lorg/apache/http/entity/StringEntity;

    invoke-virtual {v1}, Lorg/json/simple/JSONObject;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "UTF-8"

    invoke-direct {p1, v0, v1}, Lorg/apache/http/entity/StringEntity;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v2, p1}, Lorg/apache/http/client/methods/HttpPost;->setEntity(Lorg/apache/http/HttpEntity;)V

    .line 13
    invoke-interface {p2, v2}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p1

    .line 14
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2

    const/16 v0, 0xc8

    if-eq p2, v0, :cond_2

    .line 15
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p1

    invoke-interface {p1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/16 p2, 0xc9

    if-eq p1, p2, :cond_2

    return-object p4

    .line 16
    :cond_2
    iget-object p1, p3, Les/s30$a;->t:Ljava/lang/String;

    return-object p1

    :catch_0
    move-exception p1

    .line 17
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return-object p4
.end method

.method public delServer(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    .line 1
    iget-object p2, p0, Les/r30;->c:Les/t30;

    invoke-virtual {p2, p1}, Les/t30;->e(Ljava/lang/String;)V

    .line 2
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object p2

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "@Gdrive"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Les/s30;->b(Ljava/lang/String;)V

    return-void
.end method

.method public deleteFile(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object v1

    if-nez v1, :cond_0

    return v0

    .line 2
    :cond_0
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_1

    return v0

    .line 3
    :cond_1
    invoke-virtual {p0, p1, p2, p3, v1}, Les/r30;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Les/s30$a;)Les/s30$a;

    move-result-object p2

    if-nez p2, :cond_2

    return v0

    .line 4
    :cond_2
    iget v1, p2, Les/s30$a;->k:I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/16 v3, 0xc9

    const/16 v4, 0xcc

    const/16 v5, 0xc8

    const-string v6, "Bearer "

    const-string v7, "Authorization"

    const-string v8, "https://www.googleapis.com/drive/v2/files/"

    const/4 v9, 0x1

    if-le v1, v9, :cond_4

    .line 5
    :try_start_1
    invoke-direct {p0, p3}, Les/r30;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    .line 6
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p1

    .line 7
    iget-object p1, p1, Les/s30$a;->r:Ljava/lang/String;

    .line 8
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p3, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p2, Les/s30$a;->r:Ljava/lang/String;

    invoke-static {v1}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "?removeParents="

    invoke-virtual {p3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 9
    new-instance p3, Lorg/apache/http/client/methods/HttpPut;

    invoke-direct {p3, p1}, Lorg/apache/http/client/methods/HttpPut;-><init>(Ljava/lang/String;)V

    .line 10
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p3, v7, p1}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string p1, "Content-Type"

    const-string v1, "application/json"

    .line 11
    invoke-virtual {p3, p1, v1}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 12
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p1

    .line 13
    invoke-interface {p1, p3}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p1

    .line 14
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p3

    invoke-interface {p3}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p3

    if-eq p3, v5, :cond_3

    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p3

    invoke-interface {p3}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p3

    if-eq p3, v3, :cond_3

    .line 15
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p1

    invoke-interface {p1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p1

    if-eq p1, v4, :cond_3

    return v0

    .line 16
    :cond_3
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object p1

    iget p3, p2, Les/s30$a;->b:I

    invoke-virtual {p1, p3, p2, v9}, Les/s30;->a(ILes/s30$a;Z)V

    return v9

    .line 17
    :cond_4
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p2, Les/s30$a;->r:Ljava/lang/String;

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 18
    new-instance p3, Lorg/apache/http/client/methods/HttpDelete;

    invoke-direct {p3, p1}, Lorg/apache/http/client/methods/HttpDelete;-><init>(Ljava/lang/String;)V

    .line 19
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p3, v7, p1}, Lorg/apache/http/client/methods/HttpDelete;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 20
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p1

    .line 21
    invoke-interface {p1, p3}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p1

    .line 22
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p3

    invoke-interface {p3}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p3

    if-eq p3, v5, :cond_5

    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p3

    invoke-interface {p3}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p3

    if-eq p3, v4, :cond_5

    .line 23
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p1

    invoke-interface {p1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p1

    if-eq p1, v3, :cond_5

    return v0

    .line 24
    :cond_5
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object p1

    iget p3, p2, Les/s30$a;->b:I

    invoke-virtual {p1, p3, p2, v9}, Les/s30;->a(ILes/s30$a;Z)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    return v9

    :catch_0
    move-exception p1

    .line 25
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return v0
.end method

.method public exists(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Z
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const-string v0, "/"

    .line 1
    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    return v1

    .line 2
    :cond_0
    invoke-virtual {p0, p1, p2, p3, p4}, Les/r30;->getFileInfo(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Lcom/estrongs/android/pop/netfs/NetFileInfo;

    move-result-object p1

    if-eqz p1, :cond_1

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    :goto_0
    return v1
.end method

.method public getFileInfo(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Lcom/estrongs/android/pop/netfs/NetFileInfo;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const-string v0, "/"

    .line 1
    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    return-object v1

    .line 2
    :cond_0
    :try_start_0
    invoke-direct {p0, p1}, Les/r30;->c(Ljava/lang/String;)I

    move-result v0

    .line 3
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object v2

    if-eqz v2, :cond_2

    if-nez p4, :cond_1

    .line 4
    invoke-virtual {p0, v2}, Les/r30;->a(Les/s30$a;)Lcom/estrongs/android/pop/netfs/NetFileInfo;

    move-result-object p1

    return-object p1

    .line 5
    :cond_1
    invoke-virtual {p0, p1, p2, p3, v2}, Les/r30;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Les/s30$a;)Les/s30$a;

    move-result-object p1

    .line 6
    iput v0, p1, Les/s30$a;->b:I

    .line 7
    iget p2, v2, Les/s30$a;->c:I

    iput p2, p1, Les/s30$a;->c:I

    .line 8
    iget-object p2, v2, Les/s30$a;->u:Ljava/lang/String;

    iput-object p2, p1, Les/s30$a;->u:Ljava/lang/String;

    .line 9
    iput-object p3, p1, Les/s30$a;->d:Ljava/lang/String;

    const/4 p2, 0x0

    .line 10
    iput p2, p1, Les/s30$a;->e:I

    .line 11
    iget p2, v2, Les/s30$a;->a:I

    iput p2, p1, Les/s30$a;->a:I

    .line 12
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object p2

    invoke-virtual {p2, p1}, Les/s30;->b(Les/s30$a;)V

    .line 13
    invoke-virtual {p0, p1}, Les/r30;->a(Les/s30$a;)Lcom/estrongs/android/pop/netfs/NetFileInfo;

    move-result-object p1

    return-object p1

    :cond_2
    if-eqz p4, :cond_3

    .line 14
    invoke-direct {p0, p3}, Les/r30;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p4

    if-eqz p4, :cond_3

    .line 15
    invoke-virtual {p0, p1, p2, p4, v1}, Les/r30;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/HashMap;)Ljava/util/HashMap;

    .line 16
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p1

    if-eqz p1, :cond_3

    .line 17
    invoke-virtual {p0, p1}, Les/r30;->a(Les/s30$a;)Lcom/estrongs/android/pop/netfs/NetFileInfo;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :cond_3
    return-object v1

    :catch_0
    move-exception p1

    .line 18
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return-object v1
.end method

.method public getFileInputStream(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;J)Ljava/io/InputStream;
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p3

    if-eqz p3, :cond_6

    .line 2
    iget v1, p3, Les/s30$a;->e:I

    if-nez v1, :cond_6

    iget-object v1, p3, Les/s30$a;->n:Ljava/lang/String;

    if-nez v1, :cond_0

    goto/16 :goto_1

    .line 3
    :cond_0
    iget-object v1, p3, Les/s30$a;->n:Ljava/lang/String;

    .line 4
    iget v2, p3, Les/s30$a;->l:I

    and-int/lit16 v2, v2, 0x100

    if-lez v2, :cond_1

    const/4 v2, 0x1

    goto :goto_0

    :cond_1
    const/4 v2, 0x0

    :goto_0
    if-eqz v2, :cond_2

    .line 5
    iget-object v1, p3, Les/s30$a;->t:Ljava/lang/String;

    .line 6
    :cond_2
    new-instance p3, Lorg/apache/http/client/methods/HttpGet;

    invoke-direct {p3, v1}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V

    const-wide/16 v3, 0x0

    cmp-long v1, p4, v3

    if-eqz v1, :cond_3

    if-nez v2, :cond_3

    const-string v1, "Range"

    .line 7
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "bytes="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p4, p5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string p4, "-"

    invoke-virtual {v2, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p4

    invoke-virtual {p3, v1, p4}, Lorg/apache/http/client/methods/HttpGet;->addHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 8
    :cond_3
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p4

    .line 9
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_4

    return-object v0

    :cond_4
    const-string p2, "Authorization"

    .line 10
    new-instance p5, Ljava/lang/StringBuilder;

    invoke-direct {p5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Bearer "

    invoke-virtual {p5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p5, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p3, p2, p1}, Lorg/apache/http/client/methods/HttpGet;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 11
    invoke-interface {p4, p3}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p1

    .line 12
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2

    const/16 p4, 0xc8

    if-lt p2, p4, :cond_6

    .line 13
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2

    const/16 p4, 0x12c

    if-lt p2, p4, :cond_5

    goto :goto_1

    .line 14
    :cond_5
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object p1

    if-eqz p1, :cond_6

    .line 15
    new-instance p2, Les/r30$a;

    invoke-interface {p1}, Lorg/apache/http/HttpEntity;->getContent()Ljava/io/InputStream;

    move-result-object p1

    invoke-direct {p2, p0, p1, p3}, Les/r30$a;-><init>(Les/r30;Ljava/io/InputStream;Lorg/apache/http/client/methods/HttpGet;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p2

    :cond_6
    :goto_1
    return-object v0

    :catch_0
    move-exception p1

    .line 16
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return-object v0
.end method

.method public getFileLength(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)J
    .locals 4

    const-wide/16 v0, 0x0

    .line 1
    :try_start_0
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    if-nez p2, :cond_0

    return-wide v0

    .line 2
    :cond_0
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p1

    .line 3
    iget-object p1, p1, Les/s30$a;->u:Ljava/lang/String;

    .line 4
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p3

    if-eqz p3, :cond_1

    return-wide v0

    :cond_1
    const-wide/16 v2, -0x1

    .line 5
    invoke-direct {p0, p1, p2, v2, v3}, Les/r30;->a(Ljava/lang/String;Ljava/lang/String;J)J

    move-result-wide p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-wide p1

    :catch_0
    return-wide v0
.end method

.method public getFileOutputStream(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JZ)Ljava/io/OutputStream;
    .locals 21
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    move-object/from16 v13, p0

    move-object/from16 v7, p1

    move-object/from16 v8, p2

    move-wide/from16 v5, p4

    const-string v0, ""

    const/4 v14, 0x0

    .line 1
    :try_start_0
    invoke-direct/range {p0 .. p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-nez v1, :cond_0

    return-object v14

    :cond_0
    move-object/from16 v2, p3

    .line 2
    invoke-direct {v13, v2}, Les/r30;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 3
    invoke-direct {v13, v2}, Les/r30;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 4
    invoke-direct {v13, v7, v8, v2}, Les/r30;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 5
    invoke-direct {v13, v7, v2}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object v4

    goto :goto_0

    :cond_1
    move-object v4, v14

    :goto_0
    const/4 v9, 0x1

    const/4 v10, 0x0

    if-eqz v4, :cond_2

    const/4 v11, 0x1

    goto :goto_1

    :cond_2
    const/4 v11, 0x0

    :goto_1
    if-nez v11, :cond_4

    .line 6
    invoke-virtual {v13, v7, v8, v2, v10}, Les/r30;->createFile(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v4

    if-nez v4, :cond_3

    return-object v14

    .line 7
    :cond_3
    invoke-direct {v13, v7, v2}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object v4

    :cond_4
    const-wide/32 v11, 0x500000

    cmp-long v2, v5, v11

    if-lez v2, :cond_5

    const/4 v2, 0x1

    goto :goto_2

    :cond_5
    const/4 v2, 0x0

    .line 8
    :goto_2
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "https://www.googleapis.com/upload/drive/v2/files/"

    invoke-virtual {v9, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v11, v4, Les/s30$a;->r:Ljava/lang/String;

    invoke-virtual {v9, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v11, "?uploadType="

    invoke-virtual {v9, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-eqz v2, :cond_6

    const-string v11, "resumable"

    goto :goto_3

    :cond_6
    const-string v11, "media"

    :goto_3
    invoke-virtual {v9, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    const-wide/16 v11, 0x0

    if-eqz v2, :cond_7

    .line 9
    iget-object v15, v4, Les/s30$a;->u:Ljava/lang/String;

    invoke-static {v15}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v15

    if-nez v15, :cond_7

    .line 10
    iget-object v15, v4, Les/s30$a;->u:Ljava/lang/String;

    invoke-direct {v13, v15, v1, v5, v6}, Les/r30;->a(Ljava/lang/String;Ljava/lang/String;J)J

    move-result-wide v15

    goto :goto_4

    :cond_7
    move-wide v15, v11

    .line 11
    :goto_4
    invoke-static {v3}, Lcom/estrongs/android/pop/netfs/utils/TypeUtils;->getFileType(Ljava/lang/String;)I

    move-result v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    const/4 v10, -0x1

    const-string v17, "application/octet-stream"

    if-eq v3, v10, :cond_9

    .line 12
    :try_start_1
    invoke-static {v3}, Lcom/estrongs/android/pop/netfs/utils/TypeUtils;->getMimetypeName(I)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_8

    goto :goto_5

    :cond_8
    move-object v10, v3

    goto :goto_6

    :cond_9
    :goto_5
    move-object/from16 v10, v17

    :goto_6
    cmp-long v3, v5, v11

    if-nez v3, :cond_a

    const-wide/16 v17, 0x1

    move-wide/from16 v19, v17

    goto :goto_7

    :cond_a
    move-wide/from16 v19, v5

    .line 13
    :goto_7
    new-instance v3, Lcom/estrongs/android/pop/netfs/utils/UploadOutputStream;

    invoke-direct {v3}, Lcom/estrongs/android/pop/netfs/utils/UploadOutputStream;-><init>()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2

    .line 14
    :try_start_2
    new-instance v14, Lcom/estrongs/android/pop/netfs/utils/FastPipedInputStream;

    invoke-direct {v14}, Lcom/estrongs/android/pop/netfs/utils/FastPipedInputStream;-><init>()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 15
    :try_start_3
    invoke-virtual {v14, v3}, Lcom/estrongs/android/pop/netfs/utils/FastPipedInputStream;->connect(Lcom/estrongs/android/pop/netfs/utils/FastPipedOutputStream;)V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    if-eqz v2, :cond_10

    .line 16
    :try_start_4
    iget-object v11, v4, Les/s30$a;->u:Ljava/lang/String;

    invoke-static {v11}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v11

    if-nez v11, :cond_c

    const-wide/16 v11, 0x0

    cmp-long v17, v15, v11

    if-gtz v17, :cond_b

    goto :goto_9

    .line 17
    :cond_b
    iget-object v0, v4, Les/s30$a;->u:Ljava/lang/String;

    move-object/from16 v17, v3

    :goto_8
    move-object v3, v0

    goto/16 :goto_b

    .line 18
    :cond_c
    :goto_9
    new-instance v11, Lorg/apache/http/client/methods/HttpPut;

    invoke-direct {v11, v9}, Lorg/apache/http/client/methods/HttpPut;-><init>(Ljava/lang/String;)V

    const-string v9, "Authorization"

    .line 19
    new-instance v12, Ljava/lang/StringBuilder;

    invoke-direct {v12}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v17, v3

    const-string v3, "Bearer "

    invoke-virtual {v12, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v11, v9, v1}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "Content-Type"

    const-string v3, "application/json"

    .line 20
    invoke-virtual {v11, v1, v3}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "X-Upload-Content-Type"

    .line 21
    invoke-virtual {v11, v1, v10}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "X-Upload-Content-Length"

    .line 22
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-wide/from16 v5, v19

    invoke-virtual {v3, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v11, v1, v3}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 23
    new-instance v1, Lorg/apache/http/entity/StringEntity;

    const-string v3, "UTF-8"

    invoke-direct {v1, v0, v3}, Lorg/apache/http/entity/StringEntity;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v11, v1}, Lorg/apache/http/client/methods/HttpPut;->setEntity(Lorg/apache/http/HttpEntity;)V

    .line 24
    invoke-virtual/range {p0 .. p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object v0

    .line 25
    invoke-interface {v0, v11}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v0

    .line 26
    invoke-static {v0}, Lcom/estrongs/android/pop/netfs/utils/HttpUtils;->readResponse(Lorg/apache/http/HttpResponse;)Ljava/lang/String;

    .line 27
    invoke-interface {v0}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v1

    invoke-interface {v1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v1

    const/16 v3, 0xc8

    if-eq v1, v3, :cond_d

    const/4 v1, 0x0

    return-object v1

    :cond_d
    const-string v1, "Location"

    .line 28
    invoke-interface {v0, v1}, Lorg/apache/http/HttpResponse;->getHeaders(Ljava/lang/String;)[Lorg/apache/http/Header;

    move-result-object v0

    if-eqz v0, :cond_f

    .line 29
    array-length v1, v0

    if-nez v1, :cond_e

    goto :goto_a

    :cond_e
    const/4 v1, 0x0

    .line 30
    aget-object v0, v0, v1

    invoke-interface {v0}, Lorg/apache/http/Header;->getValue()Ljava/lang/String;

    move-result-object v0

    .line 31
    iput-object v0, v4, Les/s30$a;->u:Ljava/lang/String;

    .line 32
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v1

    invoke-virtual {v1, v4}, Les/s30;->b(Les/s30$a;)V

    goto/16 :goto_8

    :cond_f
    :goto_a
    const/4 v0, 0x0

    return-object v0

    :cond_10
    move-object/from16 v17, v3

    move-object v3, v9

    .line 33
    :goto_b
    new-instance v12, Les/r30$b;

    move-object v0, v12

    move-object/from16 v1, p0

    move-object/from16 v11, v17

    move-object v4, v14

    move-wide/from16 v5, p4

    move-object/from16 v7, p1

    move-object/from16 v8, p2

    move-object v9, v10

    move-wide v10, v15

    move-object v15, v12

    move-object/from16 v12, v17

    invoke-direct/range {v0 .. v12}, Les/r30$b;-><init>(Les/r30;ZLjava/lang/String;Lcom/estrongs/android/pop/netfs/utils/FastPipedInputStream;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;JLcom/estrongs/android/pop/netfs/utils/UploadOutputStream;)V

    move-object/from16 v0, v17

    .line 34
    invoke-virtual {v0, v15, v14}, Lcom/estrongs/android/pop/netfs/utils/UploadOutputStream;->setTask(Ljava/lang/Thread;Ljava/io/InputStream;)V

    .line 35
    invoke-virtual {v15}, Ljava/lang/Thread;->start()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1

    return-object v0

    :catch_0
    const/4 v0, 0x0

    return-object v0

    :catch_1
    const/4 v0, 0x0

    goto :goto_c

    :catch_2
    move-object v0, v14

    :goto_c
    return-object v0
.end method

.method public getLastErrorString(Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p1, p0, Les/r30;->f:Ljava/lang/String;

    return-object p1
.end method

.method public getLeftSpaceSize(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)J
    .locals 2

    .line 1
    :try_start_0
    invoke-virtual {p0, p1, p2}, Les/r30;->b(Ljava/lang/String;Ljava/lang/String;)[J

    move-result-object p1

    if-eqz p1, :cond_0

    const/4 p2, 0x0

    .line 2
    aget-wide p2, p1, p2

    const/4 v0, 0x1

    aget-wide v0, p1, v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    sub-long/2addr p2, v0

    return-wide p2

    :catch_0
    :cond_0
    const-wide/16 p1, 0x0

    return-wide p1
.end method

.method public getOAuthLoginUrl()Ljava/lang/String;
    .locals 4

    const/16 v0, 0xc

    new-array v0, v0, [Ljava/lang/Object;

    const/4 v1, 0x0

    const-string v2, "client_id"

    aput-object v2, v0, v1

    const-string v1, "1033052592302-dh9bgum85ac61bd4keltlbpk0vqh5hdn.apps.googleusercontent.com"

    const/4 v2, 0x1

    aput-object v1, v0, v2

    const/4 v1, 0x2

    const-string v3, "scope"

    aput-object v3, v0, v1

    const/4 v1, 0x3

    const-string v3, "https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/drive.metadata https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/userinfo.profile"

    aput-object v3, v0, v1

    const/4 v1, 0x4

    const-string v3, "response_type"

    aput-object v3, v0, v1

    const/4 v1, 0x5

    const-string v3, "code"

    aput-object v3, v0, v1

    const/4 v1, 0x6

    const-string v3, "redirect_uri"

    aput-object v3, v0, v1

    const/4 v1, 0x7

    const-string v3, "http://localhost"

    aput-object v3, v0, v1

    const/16 v1, 0x8

    const-string v3, "approval_prompt"

    aput-object v3, v0, v1

    const/16 v1, 0x9

    const-string v3, "force"

    aput-object v3, v0, v1

    const/16 v1, 0xa

    const-string v3, "access_type"

    aput-object v3, v0, v1

    const/16 v1, 0xb

    const-string v3, "offline"

    aput-object v3, v0, v1

    .line 1
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "https://accounts.google.com/o/oauth2/auth"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, ""

    invoke-static {v3, v0, v2}, Lcom/estrongs/android/pop/netfs/utils/HttpUtils;->buildGetUrl(Ljava/lang/String;[Ljava/lang/Object;Z)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getRegisterPrepareInfo([Ljava/lang/Object;)Z
    .locals 0

    const/4 p1, 0x0

    return p1
.end method

.method public getThumbnail(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/io/InputStream;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p3

    if-eqz p3, :cond_3

    .line 2
    iget v1, p3, Les/s30$a;->e:I

    if-nez v1, :cond_3

    iget-object v1, p3, Les/s30$a;->s:Ljava/lang/String;

    if-eqz v1, :cond_3

    iget-object v1, p3, Les/s30$a;->s:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_0

    goto :goto_0

    .line 3
    :cond_0
    iget-object p3, p3, Les/s30$a;->s:Ljava/lang/String;

    .line 4
    new-instance v1, Lorg/apache/http/client/methods/HttpGet;

    invoke-direct {v1, p3}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V

    .line 5
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p3

    .line 6
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_1

    return-object v0

    :cond_1
    const-string p2, "Authorization"

    .line 7
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Bearer "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p2, p1}, Lorg/apache/http/client/methods/HttpGet;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 8
    invoke-interface {p3, v1}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p1

    .line 9
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2

    const/16 p3, 0xc8

    if-eq p2, p3, :cond_2

    .line 10
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2

    const/16 p3, 0xcb

    if-eq p2, p3, :cond_2

    const-string p2, "Gdrive"

    .line 11
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "getThumbnail ret:"

    invoke-virtual {p3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p1

    invoke-interface {p1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p1

    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p2, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-object v0

    .line 12
    :cond_2
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getEntity()Lorg/apache/http/HttpEntity;

    move-result-object p1

    if-eqz p1, :cond_3

    .line 13
    invoke-interface {p1}, Lorg/apache/http/HttpEntity;->getContent()Ljava/io/InputStream;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :cond_3
    :goto_0
    return-object v0

    :catch_0
    move-exception p1

    .line 14
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return-object v0
.end method

.method public getUserLoginName(Ljava/lang/String;)Ljava/lang/String;
    .locals 20

    move-object/from16 v1, p0

    move-object/from16 v0, p1

    .line 1
    :try_start_0
    iget-boolean v3, v1, Les/r30;->d:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const-string v4, "authorization_code"

    const/4 v5, 0x7

    const-string v6, "grant_type"

    const/4 v7, 0x6

    const-string v8, "utf-8"

    const/4 v9, 0x5

    const-string v10, "code"

    const/4 v11, 0x4

    const-string v12, "PA31HP-HTZyOVgAvp_HusYp_"

    const/4 v13, 0x3

    const-string v14, "client_secret"

    const/4 v15, 0x2

    const-string v16, "1033052592302-dh9bgum85ac61bd4keltlbpk0vqh5hdn.apps.googleusercontent.com"

    const/16 v17, 0x1

    const-string v18, "client_id"

    const/16 v19, 0x0

    const/16 v2, 0x8

    if-eqz v3, :cond_0

    const/16 v3, 0xa

    :try_start_1
    new-array v3, v3, [Ljava/lang/Object;

    aput-object v18, v3, v19

    aput-object v16, v3, v17

    aput-object v14, v3, v15

    aput-object v12, v3, v13

    aput-object v10, v3, v11

    .line 2
    invoke-static {v0, v8}, Ljava/net/URLDecoder;->decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    aput-object v0, v3, v9

    aput-object v6, v3, v7

    aput-object v4, v3, v5

    const-string v0, "redirect_uri"

    aput-object v0, v3, v2

    const/16 v0, 0x9

    const-string v2, "http://localhost"

    aput-object v2, v3, v0

    goto :goto_0

    :cond_0
    new-array v3, v2, [Ljava/lang/Object;

    aput-object v18, v3, v19

    aput-object v16, v3, v17

    aput-object v14, v3, v15

    aput-object v12, v3, v13

    aput-object v10, v3, v11

    .line 3
    invoke-static {v0, v8}, Ljava/net/URLDecoder;->decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    aput-object v0, v3, v9

    aput-object v6, v3, v7

    aput-object v4, v3, v5

    .line 4
    :goto_0
    new-instance v0, Lorg/apache/http/client/methods/HttpPost;

    const-string v2, "https://accounts.google.com/o/oauth2/token"

    invoke-direct {v0, v2}, Lorg/apache/http/client/methods/HttpPost;-><init>(Ljava/lang/String;)V

    .line 5
    invoke-static {v0, v3}, Lcom/estrongs/android/pop/netfs/utils/HttpUtils;->setParameters(Lorg/apache/http/client/methods/HttpPost;[Ljava/lang/Object;)V

    .line 6
    invoke-virtual/range {p0 .. p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object v2

    .line 7
    invoke-interface {v2, v0}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v0

    .line 8
    invoke-virtual {v1, v0}, Les/r30;->a(Lorg/apache/http/HttpResponse;)Ljava/util/Map;

    move-result-object v0

    if-nez v0, :cond_1

    const/4 v2, 0x0

    return-object v2

    :cond_1
    const/4 v2, 0x0

    const-string v3, "error"

    .line 9
    invoke-interface {v0, v3}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    return-object v2

    :cond_2
    const-string v2, "access_token"

    .line 10
    invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    const-string v3, "refresh_token"

    .line 11
    invoke-interface {v0, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    if-nez v2, :cond_3

    const/4 v3, 0x0

    return-object v3

    :cond_3
    const-string v3, "https://www.googleapis.com/oauth2/v1/userinfo"

    .line 12
    new-instance v4, Lorg/apache/http/client/methods/HttpGet;

    invoke-direct {v4, v3}, Lorg/apache/http/client/methods/HttpGet;-><init>(Ljava/lang/String;)V

    .line 13
    invoke-virtual/range {p0 .. p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object v3

    const-string v5, "Authorization"

    .line 14
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "Bearer "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v5, v6}, Lorg/apache/http/client/methods/HttpGet;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 15
    invoke-interface {v3, v4}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object v3

    .line 16
    invoke-virtual {v1, v3}, Les/r30;->a(Lorg/apache/http/HttpResponse;)Ljava/util/Map;

    move-result-object v3

    if-nez v3, :cond_4

    const/4 v4, 0x0

    return-object v4

    :cond_4
    const-string v4, "name"

    .line 17
    invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/String;

    if-eqz v4, :cond_5

    .line 18
    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v5

    if-nez v5, :cond_6

    :cond_5
    const-string v4, "GDrive"

    .line 19
    :cond_6
    iget-object v5, v1, Les/r30;->c:Les/t30;

    invoke-virtual {v5, v4}, Les/t30;->a(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_8

    .line 20
    iget-object v5, v1, Les/r30;->c:Les/t30;

    invoke-virtual {v5, v4, v2}, Les/t30;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 21
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object v2

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v6, "@Gdrive"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Les/s30;->a(Ljava/lang/String;)V

    if-eqz v0, :cond_7

    .line 22
    iget-object v2, v1, Les/r30;->c:Les/t30;

    invoke-virtual {v2, v4, v0}, Les/t30;->b(Ljava/lang/String;Ljava/lang/String;)V

    :cond_7
    const-string v0, "expires_in"

    .line 23
    invoke-static {v3, v0}, Lcom/estrongs/android/pop/netfs/utils/HttpUtils;->getInt(Ljava/lang/Object;Ljava/lang/String;)I

    move-result v0

    .line 24
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    mul-int/lit16 v0, v0, 0x3e8

    int-to-long v5, v0

    add-long/2addr v2, v5

    .line 25
    iget-object v0, v1, Les/r30;->c:Les/t30;

    invoke-virtual {v0, v4, v2, v3}, Les/t30;->a(Ljava/lang/String;J)V

    .line 26
    iget-object v0, v1, Les/r30;->c:Les/t30;

    invoke-virtual {v0}, Les/t30;->b()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    return-object v4

    :cond_8
    const/4 v2, 0x0

    return-object v2

    :catch_0
    move-exception v0

    .line 27
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    const/4 v2, 0x0

    return-object v2
.end method

.method public isDir(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0, p1, p2, p3}, Les/r30;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/android/pop/netfs/NetFileInfo;

    move-result-object p1

    if-nez p1, :cond_0

    const/4 p1, 0x0

    return p1

    .line 2
    :cond_0
    iget-boolean p1, p1, Lcom/estrongs/android/pop/netfs/NetFileInfo;->isDirectory:Z

    return p1
.end method

.method public isPagingSupported()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public listFiles(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZLcom/estrongs/android/pop/netfs/INetRefreshCallback;Ljava/util/HashMap;)Ljava/util/Map;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Z",
            "Lcom/estrongs/android/pop/netfs/INetRefreshCallback;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Lcom/estrongs/android/pop/netfs/NetFileInfo;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/4 p4, 0x0

    if-nez p3, :cond_0

    return-object p4

    .line 1
    :cond_0
    :try_start_0
    invoke-virtual {p0, p1, p2, p3, p6}, Les/r30;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/HashMap;)Ljava/util/HashMap;

    move-result-object p1

    if-nez p1, :cond_1

    return-object p4

    .line 2
    :cond_1
    new-instance p2, Ljava/util/HashMap;

    invoke-direct {p2}, Ljava/util/HashMap;-><init>()V

    .line 3
    invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_2
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p3

    if-eqz p3, :cond_5

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Ljava/util/Map$Entry;

    .line 4
    invoke-interface {p3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object p5

    check-cast p5, Ljava/lang/String;

    .line 5
    invoke-interface {p3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Les/s30$a;

    .line 6
    invoke-virtual {p0, p3}, Les/r30;->a(Les/s30$a;)Lcom/estrongs/android/pop/netfs/NetFileInfo;

    move-result-object p6

    if-eqz p6, :cond_2

    .line 7
    iget-boolean v0, p3, Les/s30$a;->w:Z

    if-eqz v0, :cond_3

    const-string v0, "public_share_link"

    .line 8
    iget-object v1, p3, Les/s30$a;->t:Ljava/lang/String;

    invoke-virtual {p6, v0, v1}, Lcom/estrongs/android/pop/netfs/NetFileInfo;->putExtra(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    .line 9
    :cond_3
    iget v0, p3, Les/s30$a;->l:I

    const/16 v1, 0x10

    if-ne v0, v1, :cond_4

    const-string v0, "web_file_url"

    .line 10
    iget-object p3, p3, Les/s30$a;->t:Ljava/lang/String;

    invoke-virtual {p6, v0, p3}, Lcom/estrongs/android/pop/netfs/NetFileInfo;->putExtra(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;

    .line 11
    :cond_4
    invoke-virtual {p2, p5, p6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :cond_5
    return-object p2

    :catch_0
    move-exception p1

    .line 12
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return-object p4
.end method

.method public mkDirs(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/4 v0, 0x1

    .line 1
    invoke-virtual {p0, p1, p2, p3, v0}, Les/r30;->createFile(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result p1

    return p1
.end method

.method public moveFile(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    if-nez p2, :cond_0

    return v0

    .line 2
    :cond_0
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object v1

    .line 3
    invoke-direct {p0, p3}, Les/r30;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    .line 4
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p3

    .line 5
    invoke-direct {p0, p4}, Les/r30;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 6
    invoke-direct {p0, p1, v2}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p1

    .line 7
    iget-object p3, p3, Les/s30$a;->r:Ljava/lang/String;

    .line 8
    iget-object v2, p1, Les/s30$a;->r:Ljava/lang/String;

    .line 9
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "https://www.googleapis.com/drive/v2/files/"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v4, v1, Les/s30$a;->r:Ljava/lang/String;

    invoke-static {v4}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "?removeParents="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p3, "&addParents="

    invoke-virtual {v3, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    .line 10
    new-instance v2, Lorg/apache/http/client/methods/HttpPut;

    invoke-direct {v2, p3}, Lorg/apache/http/client/methods/HttpPut;-><init>(Ljava/lang/String;)V

    const-string p3, "Authorization"

    .line 11
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Bearer "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v2, p3, p2}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string p2, "Content-Type"

    const-string p3, "application/json"

    .line 12
    invoke-virtual {v2, p2, p3}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 13
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p2

    .line 14
    invoke-interface {p2, v2}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p2

    .line 15
    invoke-interface {p2}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p3

    invoke-interface {p3}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p3

    const/16 v2, 0xc8

    if-eq p3, v2, :cond_1

    invoke-interface {p2}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2

    const/16 p3, 0xc9

    if-eq p2, p3, :cond_1

    return v0

    .line 16
    :cond_1
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object p2

    .line 17
    iget p1, p1, Les/s30$a;->a:I

    iput p1, v1, Les/s30$a;->c:I

    .line 18
    iput-object p4, v1, Les/s30$a;->d:Ljava/lang/String;

    .line 19
    invoke-virtual {p2, v1}, Les/s30;->b(Les/s30$a;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 p1, 0x1

    return p1

    :catch_0
    move-exception p1

    .line 20
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return v0
.end method

.method public register(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)I
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/16 p1, 0x64

    return p1
.end method

.method public removeShare(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/HashMap;)Z
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)Z"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/4 p4, 0x0

    .line 1
    :try_start_0
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p3

    if-nez p3, :cond_0

    return p4

    .line 2
    :cond_0
    iget-boolean v0, p3, Les/s30$a;->w:Z

    if-eqz v0, :cond_2

    .line 3
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_1

    return p4

    .line 4
    :cond_1
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "https://www.googleapis.com/drive/v2/files/"

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p3, Les/s30$a;->r:Ljava/lang/String;

    invoke-static {p3}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p3, "/permissions/anyone"

    invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 5
    new-instance p3, Lorg/apache/http/client/methods/HttpDelete;

    invoke-direct {p3, p2}, Lorg/apache/http/client/methods/HttpDelete;-><init>(Ljava/lang/String;)V

    const-string p2, "Authorization"

    .line 6
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "Bearer "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p3, p2, p1}, Lorg/apache/http/client/methods/HttpDelete;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string p1, "Content-Type"

    const-string p2, "application/json"

    .line 7
    invoke-virtual {p3, p1, p2}, Lorg/apache/http/client/methods/HttpDelete;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 8
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p1

    .line 9
    invoke-interface {p1, p3}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p1

    .line 10
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2

    const/16 p3, 0xc8

    if-eq p2, p3, :cond_2

    .line 11
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p2

    invoke-interface {p2}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p2

    const/16 p3, 0xcb

    if-eq p2, p3, :cond_2

    .line 12
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p1

    invoke-interface {p1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/16 p2, 0xcc

    if-eq p1, p2, :cond_2

    return p4

    :cond_2
    const/4 p1, 0x1

    return p1

    :catch_0
    move-exception p1

    .line 13
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    return p4
.end method

.method public renameFile(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/android/pop/netfs/NetFsException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-direct {p0, p1, p3}, Les/r30;->c(Ljava/lang/String;Ljava/lang/String;)Les/s30$a;

    move-result-object p3

    if-nez p3, :cond_0

    return v0

    .line 2
    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "https://www.googleapis.com/drive/v2/files/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p3, Les/s30$a;->r:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 3
    invoke-direct {p0, p1, p2}, Les/r30;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_1

    return v0

    .line 4
    :cond_1
    invoke-direct {p0, p4}, Les/r30;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 5
    new-instance v2, Lorg/apache/http/client/methods/HttpPut;

    invoke-direct {v2, v1}, Lorg/apache/http/client/methods/HttpPut;-><init>(Ljava/lang/String;)V

    const-string v1, "Authorization"

    .line 6
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Bearer "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, v1, p1}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    const-string p1, "Content-Type"

    const-string v1, "application/json"

    .line 7
    invoke-virtual {v2, p1, v1}, Lorg/apache/http/client/methods/HttpPut;->setHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 8
    new-instance p1, Lorg/json/simple/JSONObject;

    invoke-direct {p1}, Lorg/json/simple/JSONObject;-><init>()V

    const-string v1, "title"

    .line 9
    invoke-virtual {p1, v1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 10
    new-instance p2, Lorg/apache/http/entity/StringEntity;

    invoke-virtual {p1}, Lorg/json/simple/JSONObject;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v1, "UTF-8"

    invoke-direct {p2, p1, v1}, Lorg/apache/http/entity/StringEntity;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v2, p2}, Lorg/apache/http/client/methods/HttpPut;->setEntity(Lorg/apache/http/HttpEntity;)V

    .line 11
    invoke-virtual {p0}, Les/r30;->a()Lorg/apache/http/client/HttpClient;

    move-result-object p1

    .line 12
    invoke-interface {p1, v2}, Lorg/apache/http/client/HttpClient;->execute(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;

    move-result-object p1

    .line 13
    invoke-virtual {p0, p1}, Les/r30;->a(Lorg/apache/http/HttpResponse;)Ljava/util/Map;

    move-result-object p2

    .line 14
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v1

    invoke-interface {v1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v1

    const/16 v2, 0xc8

    if-eq v1, v2, :cond_2

    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object v1

    invoke-interface {v1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result v1

    const/16 v2, 0xc9

    if-eq v1, v2, :cond_2

    .line 15
    invoke-interface {p1}, Lorg/apache/http/HttpResponse;->getStatusLine()Lorg/apache/http/StatusLine;

    move-result-object p1

    invoke-interface {p1}, Lorg/apache/http/StatusLine;->getStatusCode()I

    move-result p1

    const/16 v1, 0xcc

    if-ne p1, v1, :cond_5

    :cond_2
    if-eqz p2, :cond_5

    const-string p1, "error"

    .line 16
    invoke-interface {p2, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_3

    goto :goto_0

    .line 17
    :cond_3
    check-cast p2, Lorg/json/simple/JSONObject;

    invoke-direct {p0, p4}, Les/r30;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p2, p1}, Les/r30;->a(Lorg/json/simple/JSONObject;Ljava/lang/String;)Les/s30$a;

    move-result-object p1

    .line 18
    invoke-static {}, Les/s30;->a()Les/s30;

    move-result-object p2

    .line 19
    iput-object p4, p3, Les/s30$a;->d:Ljava/lang/String;

    if-eqz p1, :cond_4

    .line 20
    iget-object p4, p1, Les/s30$a;->o:Ljava/lang/String;

    iput-object p4, p3, Les/s30$a;->o:Ljava/lang/String;

    .line 21
    iget-object p4, p1, Les/s30$a;->p:Ljava/lang/String;

    iput-object p4, p3, Les/s30$a;->p:Ljava/lang/String;

    .line 22
    iget-object p4, p1, Les/s30$a;->q:Ljava/lang/String;

    iput-object p4, p3, Les/s30$a;->q:Ljava/lang/String;

    .line 23
    iget-object p4, p1, Les/s30$a;->n:Ljava/lang/String;

    iput-object p4, p3, Les/s30$a;->n:Ljava/lang/String;

    .line 24
    iget-object p4, p1, Les/s30$a;->m:Ljava/lang/String;

    iput-object p4, p3, Les/s30$a;->m:Ljava/lang/String;

    .line 25
    iget p1, p1, Les/s30$a;->g:I

    iput p1, p3, Les/s30$a;->g:I

    .line 26
    :cond_4
    invoke-virtual {p2, p3}, Les/s30;->b(Les/s30$a;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 p1, 0x1

    return p1

    :catch_0
    :cond_5
    :goto_0
    return v0
.end method

.method public setConfigDir(Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-static {p1}, Les/s30;->d(Ljava/lang/String;)V

    return-void
.end method

.method public setPrivateContent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V
    .locals 0

    return-void
.end method
